The default packet parsers in the NSX Advanced Load Balancer are called Default-Radius and Default-DHCP used for Remote Authentication Dial-In User Service (RADIUS) and Dynamic Host Configuration Protocol (DHCP) respectively. This topic shows how to modify the protocol parser for RADIUS or DHCP packets in L4 DataScripts.
Though you can edit the default parsers, it is recommended to configure a new parser with the default one as template.
Using an Existing Parser as a Template
The parser code in an existing default parser can be used as template to create the new parser. To view the parser code:
Navigate to
.Edit the required default parser, for example, Default-DHCP., to view the EDIT PROTOCOL PARSER SCRIPT screen.
Copy the contents from the Import or Paste Protocol Parser Script field.
Paste the copied contents into any text editor and modify the code as required.
Creating a New Parser
To create a new parser:
Navigate to
.Click Create to open the New Protocol Parser Script window.
Enter a Name for the parser.
Paste the copied Protocol Parser Script code.
Click Save.
Associating the Parser to the DataScript
To associate the parser to the Datascript:
Navigate to
.Click the Edit icon.
Select the required Protocol Parser in the EDIT DATASCRIPT SET screen.
Click Save.
If the virtual service is in the Up state, disable it, and if the virtual service is down, enable it for the new parser to take effect.