❦ 8 avril 2019 18:25 -07, Matt Peterson <m...@peterson.org>: > In our environment we're using EX2300-C's as 10Gbps NID's for metro > ethernet use *(meaning they're essentially a managed L2 switch with an > in-band management IP). *These are configured without an IP address on the > physical me0 interface, but instead receive an IP via DHCPv4 & v6 as a > tagged "irb" VLAN interface *(note the dhcp retransmission-attempt, > -interval, and force-discover options are crucial here - otherwise the unit > will timeout all DHCP attempts prior to the interface having link up..).* > > We're trying to figure out an approach to define the "protocols lldp > management-address" stanza with the current issued IP address. > Unfortunately this command only accepts a static defined IP address, not an > interface name. Upon looking at the possible events for a SLAX or Python > script, only DHCP serving events exist - not DHCP client *(based off "help > syslog" listing). *This is probably a feature request, but maybe another > creative solution is possible? Thanks.
You may run your script on PFE_FW_SYSLOG_IP if you set the appropriate firewall rule to match on DHCP answer. Your script will be executed twice as this is not possible to make a difference between a DHCPOFFER and a DHCPACK just with a family inet filter. -- Let the data structure the program. - The Elements of Programming Style (Kernighan & Plauger) _______________________________________________ juniper-nsp mailing list juniper-nsp@puck.nether.net https://puck.nether.net/mailman/listinfo/juniper-nsp