Skip to content

Commit

Permalink
Fix go code generate: remove container links
Browse files Browse the repository at this point in the history
  • Loading branch information
rudranil-das committed Nov 4, 2024
1 parent db33356 commit 828fba6
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 23 deletions.
15 changes: 7 additions & 8 deletions artifacts/open-traffic-generator-ospfv2.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,13 @@ module: open-traffic-generator-ospfv2
| +--ro sequence-number? uint32
| +--ro age? uint16
| +--ro option-bits? uint32
| +--ro links
| +--ro link* [link-id]
| +--ro link-id -> ../state/link-id
| +--ro state
| +--ro type? enumeration
| +--ro link-id? otg-types:ipv4-address
| +--ro link-data? otg-types:ipv4-address
| +--ro metric? uint16
| +--ro link* [link-id]
| +--ro link-id -> ../state/link-id
| +--ro state
| +--ro type? enumeration
| +--ro link-id? otg-types:ipv4-address
| +--ro link-data? otg-types:ipv4-address
| +--ro metric? uint16
+--ro network-lsa* [link-state-id]
| +--ro link-state-id -> ../state/link-state-id
| +--ro state
Expand Down
25 changes: 10 additions & 15 deletions models/ospfv2/open-traffic-generator-ospfv2.yang
Original file line number Diff line number Diff line change
Expand Up @@ -120,25 +120,20 @@ module open-traffic-generator-ospfv2 {

uses ospfv2-lsdb-lsa-state;

container links {
list link {
key "link-id";
description
"This container describes OSPFv2 links.";
"OSPFv2 link attributes.";

list link {
key "link-id";
description
"OSPFv2 link attributes.";

leaf link-id {
type leafref {
path "../state/link-id";
}
description
"Reference to the link identifier.";
leaf link-id {
type leafref {
path "../state/link-id";
}

uses ospfv2-lsdb-link-state;
description
"Reference to the link identifier.";
}

uses ospfv2-lsdb-link-state;
}
}
}
Expand Down

0 comments on commit 828fba6

Please sign in to comment.