diff options
Diffstat (limited to 'config/bgp_configs.go')
-rw-r--r-- | config/bgp_configs.go | 32 |
1 files changed, 24 insertions, 8 deletions
diff --git a/config/bgp_configs.go b/config/bgp_configs.go index adb4a1c5..12af5fcb 100644 --- a/config/bgp_configs.go +++ b/config/bgp_configs.go @@ -1436,12 +1436,18 @@ type PolicyDefinitions struct { PolicyDefinitionList []PolicyDefinition } +//struct for container bgp-pol:as-path +type AsPath struct { + // original -> bgp-pol:as-path + AsPath string +} + //struct for container bgp-pol:as-path-set type AsPathSet struct { // original -> bgp-pol:as-path-set-name AsPathSetName string - // original -> bgp-pol:as-path-set-member - AsPathSetMember []string + // original -> bgp-pol:as-path + AsPathList []AsPath } //struct for container bgp-pol:as-path-sets @@ -1450,13 +1456,18 @@ type AsPathSets struct { AsPathSetList []AsPathSet } +//struct for container bgp-pol:ext-community +type ExtCommunity struct { + // original -> bgp-pol:ext-community + ExtCommunity string +} + //struct for container bgp-pol:ext-community-set type ExtCommunitySet struct { // original -> bgp-pol:ext-community-set-name ExtCommunitySetName string - // original -> bgp-pol:ext-community-member - //original type is list of union - ExtCommunityMember []string + // original -> bgp-pol:ext-community + ExtCommunityList []ExtCommunity } //struct for container bgp-pol:ext-community-sets @@ -1465,13 +1476,18 @@ type ExtCommunitySets struct { ExtCommunitySetList []ExtCommunitySet } +//struct for container bgp-pol:community +type Community struct { + // original -> bgp-pol:community + Community string +} + //struct for container bgp-pol:community-set type CommunitySet struct { // original -> bgp-pol:community-set-name CommunitySetName string - // original -> bgp-pol:community-member - //original type is list of union - CommunityMember []string + // original -> bgp-pol:community + CommunityList []Community } //struct for container bgp-pol:community-sets |