Skip to content

Commit

Permalink
Merge pull request #37 from open-traffic-generator/dhcpv6_li
Browse files Browse the repository at this point in the history
Dhcpv6 li making ipv6 and iapd ipv6 info as array
  • Loading branch information
SouravSinhaRoy authored Aug 27, 2024
2 parents a7e61bc + b8d69a0 commit 72a3536
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 23 deletions.
18 changes: 11 additions & 7 deletions artifacts/open-traffic-generator-dhcpv6client.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,14 @@ module: open-traffic-generator-dhcpv6client
| +--ro rapid-commit-solicits-sent? otg-types:counter64
| +--ro rapid-commit-replies-received? otg-types:counter64
+--ro interface
+--ro iapd-address? otg-types:ipv6-address
+--ro iapd-prefix-length? uint32
+--ro address? otg-types:ipv6-address
+--ro gateway-address? otg-types:ipv6-address
+--ro lease-time? uint32
+--ro renew-time? uint32
+--ro rebind-time? uint32
+--ro iapd-addresses
| +--ro iapd-address* []
| +--ro address? otg-types:ipv6-address
| +--ro prefix-length? uint32
+--ro ia-addresses
| +--ro ia-address* []
| +--ro address? otg-types:ipv6-address
| +--ro gateway? otg-types:ipv6-address
+--ro lease-time? uint32
+--ro renew-time? uint32
+--ro rebind-time? uint32
57 changes: 41 additions & 16 deletions models/dhcp/v6client/open-traffic-generator-dhcpv6client.yang
Original file line number Diff line number Diff line change
Expand Up @@ -162,26 +162,51 @@ module open-traffic-generator-dhcpv6client {
grouping dhcp6-interface {
description
"This grouping defines learning of IPv6 address information.";
leaf iapd-address {
type otg-types:ipv6-address;
description
"The IPv6 IAPD address associated with this DHCP Client session.";
}
leaf iapd-prefix-length {
type uint32;
description
"The prefix length of the IPv6 IAPD address";
}
leaf address {
type otg-types:ipv6-address;

container iapd-addresses {
description
"The IPv6 address associated with this DHCP Client session.";
"Discovered IPv6 IAPD addresses associated with this DHCP Client session";

list iapd-address {

description
"A list of IPv6 IAPD addresses and prefix lengths.";

leaf address {
type otg-types:ipv6-address;
description
"The IPv6 IAPD address associated with this DHCP Client session.";
}
leaf prefix-length {
type uint32;
description
"The prefix length of the IPv6 IAPD address";
}
}
}
leaf gateway-address {
type otg-types:ipv6-address;

container ia-addresses {
description
"The Gateway address associated with the DHCP Client session.";
"Discovered IPv6 addresses and gateways associated with this DHCP Client session";

list ia-address {

description
"A list of IPv6 addresses and gateways.";

leaf address {
type otg-types:ipv6-address;
description
"The IPv6 address associated with this DHCP Client session.";
}
leaf gateway {
type otg-types:ipv6-address;
description
"The Gateway address associated with the DHCP Client session.";
}
}
}

leaf lease-time {
type uint32;
description
Expand Down

0 comments on commit 72a3536

Please sign in to comment.