commit | b4e3e1043502e6f1433a3bab348d2cca067b5980 | [log] [tgz] |
---|---|---|
author | Saurav Das <sauravdas@alumni.stanford.edu> | Tue Oct 02 15:31:17 2018 -0700 |
committer | Saurav Das <sauravdas@alumni.stanford.edu> | Thu Oct 11 10:26:13 2018 -0700 |
tree | 7458ab90809af21ad152a145c1c218fd4dbbe839 | |
parent | 15626a0c75e44295cc0fe069a4497e6d98b043db [diff] |
Adding a higher priority flow to trap dhcp messages from server at dhcpServerConnectPoint (agg-switch uplink) - The flows added previously were being ignored due to the vlan-crossconnect functionality in the agg-switch. The priority of those flows were too low. - Also added a component config to ensure that ONOS core HostLocationProvider learns IP addresses of hosts from dhcp ACK messages. Change-Id: Ic4377e5ff5642bd05117d9ad286f50f94cc51ec5
The ONOS dhcpl2relay application is a DHCP Relay Agent which does Layer 2 relay.
The DHCP packets sent towards the DHCP Server (DHCP DISCOVER and DHCP REQUEST) are double tagged by this app. It retrieves the tag values to be used from the Sadis
Service. Similarly it replaces the tags on the packets received from the server (DHCP OFFER and DHCP ACK) with priority tags.
DHCP Option 82 with CircuitId and RemoteId are added to packets sent to the DHCP server and Option 82 received from the server are removed before relaying back to the client. The CircuitId and Remote Id are retrieved from Sadis
Service.
There are two options to packet-in/packet-out to the DHCP Server.
dhcpserverConnectPoints
useOltUplinkForServerPktInOut
"org.opencord.dhcpl2relay" : { "dhcpl2relay" : { "dhcpServerConnectPoints" : [ "of:00000000000000b2/2" ], "useOltUplinkForServerPktInOut" : true } }
Port on the switch through which the DHCP Server is reachable
The default value of this parameter is false. Only if this parameter is false the dhcpServerConnectPoints parameter is used else not
"org.opencord.sadis" : { "sadis" : { "integration" : { "cache" : { "enabled" : true, "maxsize" : 50, "ttl" : "PT1m" } }, "entries" : [ { "id" : "uni-128", # (This is an entry for a subscriber) Same as the portName of the Port as seen in onos ports command "cTag" : 2, # C-tag of the subscriber "sTag" : 2, # S-tag of the subscriber "nasPortId" : "uni-128" # NAS Port Id of the subscriber, could be different from the id above }, { "id" : "1d3eafb52e4e44b08818ab9ebaf7c0d4", # (This is an entry for an OLT device) Same as the serial of the OLT logical device as seen in the onos devices command "hardwareIdentifier" : "00:1b:22:00:b1:78", # MAC address to be used for this OLT "ipAddress" : "192.168.1.252", # IP address to be used for this OLT "nasId" : "B100-NASID" # NAS ID to be used for this OLT } ] } }