The networking_cisco.plugins.cisco.cpnr.cpnr_dhcp_relay_agent Module

class networking_cisco.plugins.cisco.cpnr.cpnr_dhcp_relay_agent.DhcpPacket

Bases: object

data()
get_ciaddr()
get_relay_option(code)
classmethod parse(buf)

Parse DHCP Packet.

  1. To get client IP Address(ciaddr).

  2. To get relaying gateway IP Address(giaddr).

  3. To get DHCP Relay Agent Information Option Suboption

    such as Link Selection, VSS, Server Identifier override.

set_giaddr(addr)
set_relay_option(code, value)
classmethod struct(fmt)
structcache = {}
class networking_cisco.plugins.cisco.cpnr.cpnr_dhcp_relay_agent.DhcpRelayAgent

Bases: object

Relay DHCP packets between neutron networks and external DHCP server.

Receives broadcast and unicast DHCP requests via sockets which are opened in each neutron dhcp network namespace. Additional DHCP options are appended to the request to indicate from which network the request originated. Requests are then forwarded to the configured DHCP server address.

Receives unicast DHCP responses from the DHCP server via socket opened in the global network namespace. Additional options are stripped from the response. The response is then forwarded to the originating network.

serve()
networking_cisco.plugins.cisco.cpnr.cpnr_dhcp_relay_agent.main()