openconfig

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 15, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BGP_KEY                    = "bgp"
	BGP_AS_KEY                 = "as"
	BGP_PEERAS_KEY             = "peer-as"
	BGP_LOCALAS_KEY            = "local-as"
	BGP_ROUTERID_KEY           = "router-id"
	BGP_NEIGHBORS_KEY          = "neighbors"
	BGP_NEIGHBOR_KEY           = "neighbor"
	BGP_NEIGHBOR_ADDR_KEY      = "neighbor-address"
	BGP_TIMERS_KEY             = "timers"
	BGP_TRANSPORT_KEY          = "transport"
	BGP_HOLDTIME_KEY           = "hold-time"
	BGP_KEEPALIVE_INTERVAL_KEY = "keepalive-interval"
	BGP_LOCAL_ADDR_KEY         = "local-address"
	BGP_ZEBRA_KEY              = "zebra"
	BGP_ZEBRA_VERSION_KEY      = "version"
	BGP_ZEBRA_URL_KEY          = "url"
	BGP_ZEBRA_REDISTROUTES_KEY = "redistribute-routes"
	BGP_AFISAFIS_KEY           = "afi-safis"
	BGP_AFISAFI_KEY            = "afi-safi"
	BGP_AFISAFI_NAME_KEY       = "afi-safi-name"
	BGP_APPLYPOLICY_KEY        = "apply-policy"
	BGP_TYPES_XMLNS            = "http://openconfig.net/yang/bgp-types"
	BGP_TYPES_MODULE           = "oc-bgp-types"
	BGP_POLICY_XMLNS           = "https://github.com/beluganos/beluganos/yang/bgp-policy"
	BGP_POLICY_MODULE          = "boc-bgp-pol"
)
View Source
const (
	BGP_ACTIONS_KEY               = "bgp-actions"
	BGP_ACTIONS_SET_LOCALPREF_KEY = "set-local-pref"
	BGP_ACTIONS_SET_NEXTHOP_KEY   = "set-next-hop"
)
View Source
const (
	BGP_AFI_IPV4       = 1
	BGP_AFI_IPV6       = 2
	BGP_AFI_L2VPN      = 25
	BGP_AFI_IPV4_SAFI  = uint32(BGP_AFI_IPV4 << 16)
	BGP_AFI_IPV6_SAFI  = uint32(BGP_AFI_IPV6 << 16)
	BGP_AFI_L2VPN_SAFI = uint32(BGP_AFI_L2VPN << 16)
)
View Source
const (
	BGP_AFI_SAFI_TYPE                 = BgpAfiSafiType(0)
	BGP_AFI_SAFI_IPV4_UNICAST         = BgpAfiSafiType(BGP_AFI_IPV4_SAFI | 1)
	BGP_AFI_SAFI_IPV6_UNICAST         = BgpAfiSafiType(BGP_AFI_IPV6_SAFI | 1)
	BGP_AFI_SAFI_IPV4_LABELED_UNICAST = BgpAfiSafiType(BGP_AFI_IPV4_SAFI | 4)
	BGP_AFI_SAFI_IPV6_LABELED_UNICAST = BgpAfiSafiType(BGP_AFI_IPV6_SAFI | 4)
	BGP_AFI_SAFI_L3VPN_IPV4_UNICAST   = BgpAfiSafiType(BGP_AFI_IPV4_SAFI | 128)
	BGP_AFI_SAFI_L3VPN_IPV6_UNICAST   = BgpAfiSafiType(BGP_AFI_IPV6_SAFI | 128)
	BGP_AFI_SAFI_L3VPN_IPV4_MULTICAST = BgpAfiSafiType(BGP_AFI_IPV4_SAFI | 129)
	BGP_AFI_SAFI_L3VPN_IPV6_MULTICAST = BgpAfiSafiType(BGP_AFI_IPV6_SAFI | 129)
	BGP_AFI_SAFI_L2VPN_VPLS           = BgpAfiSafiType(BGP_AFI_L2VPN_SAFI | 65)
	BGP_AFI_SAFI_L2VPN_EVPN           = BgpAfiSafiType(BGP_AFI_L2VPN_SAFI | 70)
)
View Source
const (
	INTERFACES_XMLNS          = "https://github.com/beluganos/beluganos/yang/interfaces"
	INTERFACES_MODULE         = "beluganos-interfaces"
	INTERFACES_KEY            = "interfaces"
	INTERFACE_KEY             = "interface"
	INTERFACE_TYPE_KEY        = "type"
	INTERFACE_MTU_KEY         = "mtu"
	INTERFACE_ID_KEY          = "interface-id"
	INTERFACE_REF_KEY         = "interface-ref"
	INTERFACE_ETH_MODULE      = "beluganos-if-ethernet"
	INTERFACE_ETH_KEY         = "ethernet"
	INTERFACE_ETH_MACADDR_KEY = "mac-address"
)
View Source
const (
	STATICROUTES_KEY          = "static-routes"
	STATICROUTE_KEY           = "static"
	STATICROUTE_IP_KEY        = "ip"
	STATICROUTE_PREFIXLEN_KEY = "prefix-length"
	STATICROUTE_NEXTHOPS_KEY  = "next-hops"
	STATICROUTE_NEXTHOP_KEY   = "next-hop"
)
View Source
const (
	MPLS_KEY           = "mpls"
	MPLS_NULLLABEL_KEY = "null-label"
	MPLS_IFATTRS_KEY   = "interface-attributes"
	MPLS_SIGPROTOS_KEY = "signaling-protocols"
	MPLS_LDP_KEY       = "ldp"
)
View Source
const (
	MPLS_LDP_ROUTERID_KEY                    = "lsr-id"
	MPLS_LDP_AF_KEY                          = "address-families"
	MPLS_LDP_AF_IPV4_KEY                     = "ipv4"
	MPLS_LDP_AF_IPV6_KEY                     = "ipv6"
	MPLS_LDP_AF_TARNSADDR_KEY                = "transport-address"
	MPLS_LDP_AF_SESSION_HOLDTIME_KEY         = "session-ka-holdtime"
	MPLS_LDP_LABELPOLICY_KEY                 = "label-policy"
	MPLS_LDP_LABELPOLICY_ADOV_KEY            = "advertise"
	MPLS_LDP_LABELPOLICY_ENABLE_KEY          = "enable"
	MPLS_LDP_LABELPOLICY_ENGRESS_EXPNULL_KEY = "egress-explicit-null"
	MPLS_LDP_DISCOVERY_KEY                   = "discovery"
	MPLS_LDP_HELLO_HOLDTIME                  = "hello-holdtime"
	MPLS_LDP_HELLO_INTERVAL                  = "hello-interval"
)
View Source
const (
	MPLS_TYPES_XMLNS = "http://openconfig.net/yang/mpls-types"
	MPLS_TYPE_MODULE = "oc-mpls-types"
)
View Source
const (
	NETWORKINSTANCES_XMLNS       = "https://github.com/beluganos/beluganos/yang/network-instanc"
	NETWORKINSTANCES_MODULE      = "beluganos-network-instance"
	NETWORKINSTANCES_KEY         = "network-instances"
	NETWORKINSTANCE_KEY          = "network-instance"
	NETWORKINSTANCE_ROUTERID_KEY = "router-id"
	NETWORKINSTANCE_RD_KEY       = "route-distinguisher"
	NETWORKINSTANCE_RT_KEY       = "route-target"
	NETWORKINSTANCE_PROTOS_KEY   = "protocols"
	NETWORKINSTANCE_PROTO_KEY    = "protocol"
	NETWORKINSTANCE_LOS_KEY      = "loopbacks"
	NETWORKINSTANCE_LO_KEY       = "loopback"
	NETWORKINSTANCE_LO_ADDRS_KEY = "addresses"
	NETWORKINSTANCE_LO_ADDR_KEY  = "address"
	NETWORKINSTANCE_LO_IP_KEY    = "ip"
	NETWORKINSTANCE_LO_PLEN_KEY  = "prefix-length"
)
View Source
const (
	NETWORK_INSTANCE_TYPES_XMLNS  = "http://openconfig.net/yang/network-instance-types"
	NETWORK_INSTANCE_TYPES_MODULE = "oc-ni-types"
)
View Source
const (
	OC_CONFIG_KEY      = "config"
	OC_STATS_KEY       = "stats"
	OC_ID_KEY          = "id"
	OC_NAME_KEY        = "name"
	OC_GLOBAL_KEY      = "global"
	OC_INDEX_KEY       = "index"
	OC_TYPE_KEY        = "type"
	OC_ENABLED_KEY     = "enabled"
	OC_IDENT_KEY       = "identifier"
	OC_DESCRIPTION_KEY = "description"
)
View Source
const (
	OSPFV2_KEY                = "ospfv2"
	OSPFV2_ROUTERID_KEY       = "router-id"
	OSPFV2_AREAS_KEY          = "areas"
	OSPFV2_AREA_KEY           = "area"
	OSPFV2_METRIC_KEY         = "metric"
	OSPFV2_PASSIVE_KEY        = "passive"
	OSPFV2_NETWORK_TYPE_KEY   = "network-type"
	OSPFV2_PRIORITY_KEY       = "priority"
	OSPFV2_TIMERS_KEY         = "timers"
	OSPFV2_DEAD_INTERVAL_KEY  = "dead-interval"
	OSPFV2_HELLO_INTERVAL_KEY = "hello-interval"
)
View Source
const (
	OSPFV3_KEY                 = "ospfv3"
	OSPFV3_ROUTERID_KEY        = "router-id"
	OSPFV3_AREAS_KEY           = "areas"
	OSPFV3_AREA_KEY            = "area"
	OSPFV3_METRIC_KEY          = "metric"
	OSPFV3_PASSIVE_KEY         = "passive"
	OSPFV3_NETWORK_TYPE_KEY    = "network-type"
	OSPFV3_PRIORITY_KEY        = "priority"
	OSPFV3_TIMERS_KEY          = "timers"
	OSPFV3_DEAD_INTERVAL_KEY   = "dead-interval"
	OSPFV3_HELLO_INTERVAL_KEY  = "hello-interval"
	OSPFV3_RANGES_KEY          = "ranges"
	OSPFV3_RANGE_KEY           = "range"
	OSPFV3_RANGE_IP_KEY        = "ip"
	OSPFV3_RANGE_PREFIXLEN_KEY = "prefix-length"
)
View Source
const (
	ROUTINGPOLICY_XMLNS          = "https://github.com/beluganos/beluganos/yang/routing-policy"
	ROUTINGPOLICY_MODULE         = "beluganos-routing-policy"
	ROUTINGPOLICY_KEY            = "routing-policy"
	POLICYDEFS_KEY               = "policy-definitions"
	POLICYDEF_KEY                = "policy-definition"
	POLICYDEF_ACTS_KEY           = "actions"
	POLICYDEF_ACTS_POLRESULT_KEY = "policy-result"
	POLICYDEF_STMTS_KEY          = "statements"
	POLICYDEF_STMT_KEY           = "statement"
	POLICYDEFSETS_KEY            = "defined-sets"
	POLICYPFXSETS_KEY            = "prefix-sets"
	POLICYPFXSET_KEY             = "prefix-set"
	POLICYPFXSET_PREFIXES_KEY    = "prefixes"
	POLICYPFXSET_PREFIX_KEY      = "prefix"
	POLICYPFXSET_PREFIX_IP_KEY   = "ip-prefix"
	POLICYPFXSET_PREFIX_MLR_KEY  = "masklength-range"
	POLICYPFXSET_MODE_KEY        = "mode"
	POLICYNEIGHSETS_KEY          = "neighbor-sets"
	POLICYNEIGHSET_KEY           = "neighbor-set"
	POLICYNEIGHSET_ADDRS_KEY     = "address"
	POLICYTAGSETS_KEY            = "tag-sets"
	POLICYTAGSET_KEY             = "tag-set"
	POLICYTAGSET_TAGVALUE_KEY    = "tag-value"
	POLICYAPPLY_KEY              = "apply-policy"
	POLICYAPPLY_IMPORT_KEY       = "import-policy"
	POLICYAPPLY_IMPORT_DEF_KEY   = "default-import-policy"
	POLICYAPPLY_EXPORT_KEY       = "export-policy"
	POLICYAPPLY_EXPORT_DEF_KEY   = "default-export-policy"
)
View Source
const (
	SUBINTERFACES_KEY               = "subinterfaces"
	SUBINTERFACE_KEY                = "subinterface"
	SUBINTERFACE_IP_MODULE          = "beluganos-if-ip"
	SUBINTERFACE_IPV4_KEY           = "ipv4"
	SUBINTERFACE_IPV6_KEY           = "ipv6"
	SUBINTERFACE_MTU_KEY            = "mtu"
	SUBINTERFACE_ADDRS_KEY          = "addresses"
	SUBINTERFACE_ADDR_KEY           = "address"
	SUBINTERFACE_ADDR_IP_KEY        = "ip"
	SUBINTERFACE_ADDR_PREFIXLEN_KEY = "prefix-length"
)
View Source
const IANAifTypeNS = "iana-if-type"

Variables

This section is empty.

Functions

func ProcessBgp

func ProcessBgp(p BgpProcessor, reverse bool, name string, key *NetworkInstanceProtocolKey, bgp *Bgp) error

func ProcessBgpGlobal

func ProcessBgpGlobal(p BgpGlobalProcessor, reverse bool, name string, key *NetworkInstanceProtocolKey, global *BgpGlobal) error

func ProcessBgpGlobalConfig

func ProcessBgpGlobalConfig(p BgpGlobalProcessor, reverse bool, name string, key *NetworkInstanceProtocolKey, config *BgpGlobalConfig) error

func ProcessBgpNeighbor

func ProcessBgpNeighbor(p BgpNeighborProcessor, reverse bool, name string, key *NetworkInstanceProtocolKey, addr string, neigh *BgpNeighbor) error

func ProcessBgpNeighborAfiSafi

func ProcessBgpNeighborAfiSafi(p BgpNeighborAfiSafiProcessor, reverse bool, name string, key *NetworkInstanceProtocolKey, addr string, afiSafiName string, afiSafi *BgpAfiSafi) error

func ProcessBgpNeighborAfiSafis

func ProcessBgpNeighborAfiSafis(p BgpNeighborAfiSafiProcessor, reverse bool, name string, key *NetworkInstanceProtocolKey, addr string, afisafis BgpAfiSafis) error

bgp/neighbors/neighbor[addr]/afi-safis

func ProcessBgpNeighborApplyPolicy

func ProcessBgpNeighborApplyPolicy(p BgpNeighborApplyPolicyProcessor, reverse bool, name string, key *NetworkInstanceProtocolKey, addr string, policy *PolicyApply) error

func ProcessBgpNeighborConfig

func ProcessBgpNeighborConfig(p BgpNeighborConfigProcessor, reverse bool, name string, key *NetworkInstanceProtocolKey, addr string, config *BgpNeighborConfig) error

func ProcessBgpNeighborTimers

func ProcessBgpNeighborTimers(p BgpNeighborTimersProcessor, reverse bool, name string, key *NetworkInstanceProtocolKey, addr string, timers *BgpNeighborTimers) error

func ProcessBgpNeighborTimersConfig

func ProcessBgpNeighborTimersConfig(p BgpNeighborTimersConfigProcessor, reverse bool, name string, key *NetworkInstanceProtocolKey, addr string, config *BgpNeighborTimersConfig) error

func ProcessBgpNeighborTransport

func ProcessBgpNeighborTransport(p BgpNeighborTransportProcessor, reverse bool, name string, key *NetworkInstanceProtocolKey, addr string, trans *BgpNeighborTransport) error

func ProcessBgpNeighbors

func ProcessBgpNeighbors(p BgpNeighborProcessor, reverse bool, name string, key *NetworkInstanceProtocolKey, neighs BgpNeighbors) error

func ProcessBgpZebra

func ProcessBgpZebra(p BgpZebraProcessor, reverse bool, name string, key *NetworkInstanceProtocolKey, zebra *BgpZebra) error

func ProcessBgpZebraConfig

func ProcessBgpZebraConfig(p BgpZebraConfigProcessor, reverse bool, name string, key *NetworkInstanceProtocolKey, config *BgpZebraConfig) error

func ProcessInterface

func ProcessInterface(p interfaceProcessor, reverse bool, name string, iface *Interface) error

func ProcessInterfaceConfig

func ProcessInterfaceConfig(p InterfaceConfigProcessor, reverse bool, name string, config *InterfaceConfig) error

func ProcessInterfaceEthernet

func ProcessInterfaceEthernet(p InterfaceEthernetProcessor, reverse bool, name string, ethernet *InterfaceEthernet) error

func ProcessInterfaceEthernetConfig

func ProcessInterfaceEthernetConfig(p InterfaceEthernetConfigProcessor, reverse bool, name string, config *InterfaceEthernetConfig) error

func ProcessInterfaces

func ProcessInterfaces(p InterfaceProcessor, reverse bool, ifaces Interfaces) error

func ProcessMpls

func ProcessMpls(p MplsProcessor, reverse bool, name string, mpls *Mpls) error

func ProcessMplsConfig

func ProcessMplsConfig(p MplsConfigProcessor, reverse bool, name string, config *MplsConfig) error

func ProcessMplsGlobal

func ProcessMplsGlobal(p MplsGlobalProcessor, reverse bool, name string, global *MplsGlobal) error

func ProcessMplsInterfaceAttr

func ProcessMplsInterfaceAttr(p MplsInterfaceAttrProcessor, reverse bool, name string, ifaceId string, attr *MplsInterfaceAttr) error

func ProcessMplsInterfaceAttrConfig

func ProcessMplsInterfaceAttrConfig(p MplsInterfaceAttrConfigProcessor, reverse bool, name string, ifaceId string, config *MplsInterfaceAttrConfig) error

func ProcessMplsInterfaceAttrRef

func ProcessMplsInterfaceAttrRef(p MplsInterfaceAttrRefProcessor, reverse bool, name string, ifaceId string, ifaceRef *InterfaceRef) error

func ProcessMplsInterfaceAttrs

func ProcessMplsInterfaceAttrs(p MplsInterfaceAttrProcessor, reverse bool, name string, attrs MplsInterfaceAttrs) error

func ProcessMplsLdp

func ProcessMplsLdp(p MplsLdpProcessor, reverse bool, name string, ldp *MplsLdp) error

func ProcessMplsLdpAddressFamily

func ProcessMplsLdpAddressFamily(p MplsLdpAddressFamilyProcessor, reverse bool, name string, af *MplsLdpAddressFamily) error

func ProcessMplsLdpAddressFamilyV4

func ProcessMplsLdpAddressFamilyV4(p MplsLdpAddressFamilyV4Processor, reverse bool, name string, ipv4 *MplsLdpAddressFamilyV4) error

func ProcessMplsLdpAddressFamilyV4Config

func ProcessMplsLdpAddressFamilyV4Config(p MplsLdpAddressFamilyV4ConfigProcessor, reverse bool, name string, config *MplsLdpAddressFamilyV4Config) error

func ProcessMplsLdpConfig

func ProcessMplsLdpConfig(p MplsLdpConfigProcessor, reverse bool, name string, config *MplsLdpConfig) error

func ProcessMplsLdpDiscovInterfaces

func ProcessMplsLdpDiscovInterfaces(p MplsLdpDiscovInterfacesProcessor, reverse bool, name string, ifaces *MplsLdpDiscovInterfaces) error

func ProcessMplsLdpDiscovInterfacesConfig

func ProcessMplsLdpDiscovInterfacesConfig(p MplsLdpDiscovInterfacesConfigProcessor, reverse bool, name string, config *MplsLdpDiscovInterfacesConfig) error

func ProcessMplsLdpDiscovery

func ProcessMplsLdpDiscovery(p MplsLdpDiscoveryProcessor, reverse bool, name string, disc *MplsLdpDiscovery) error

func ProcessMplsLdpGlobal

func ProcessMplsLdpGlobal(p MplsLdpGlobalProcessor, reverse bool, name string, global *MplsLdpGlobal) error

func ProcessMplsLdpInterface

func ProcessMplsLdpInterface(p MplsLdpInterfaceProcessor, reverse bool, name string, ifaceId string, iface *MplsLdpInterface) error

func ProcessMplsLdpInterfaceConfig

func ProcessMplsLdpInterfaceConfig(p MplsLdpInterfaceConfigProcessor, reverse bool, name string, ifaceId string, config *MplsLdpInterfaceConfig) error

func ProcessMplsLdpInterfaceRef

func ProcessMplsLdpInterfaceRef(p MplsLdpInterfaceRefProcessor, reverse bool, name string, ifaceId string, ifaceRef *InterfaceRef) error

func ProcessMplsLdpInterfaces

func ProcessMplsLdpInterfaces(p MplsLdpInterfaceProcessor, reverse bool, name string, ifaces MplsLdpInterfaces) error

func ProcessMplsSigProtocols

func ProcessMplsSigProtocols(p MplsSigProtocolsProcessor, reverse bool, name string, protos *MplsSigProtocols) error

func ProcessNetworkInstance

func ProcessNetworkInstance(p NetworkInstanceProcessor, reverse bool, name string, ni *NetworkInstance) error

func ProcessNetworkInstanceConfig

func ProcessNetworkInstanceConfig(p NetworkInstanceConfigProcessor, reverse bool, name string, config *NetworkInstanceConfig) error

func ProcessNetworkInstanceInterface

func ProcessNetworkInstanceInterface(p NetworkInstanceInterfaceProcessor, reverse bool, name string, ifaceId string, niIface *NetworkInstanceInterface) error

func ProcessNetworkInstanceInterfaceConfig

func ProcessNetworkInstanceInterfaceConfig(p NetworkInstanceInterfaceConfigProcessor, reverse bool, name string, ifaceId string, config *NetworkInstanceInterfaceConfig) error

func ProcessNetworkInstanceInterfaces

func ProcessNetworkInstanceInterfaces(p NetworkInstanceInterfaceProcessor, reverse bool, name string, niIfaces NetworkInstanceInterfaces) error

func ProcessNetworkInstanceLoopback

func ProcessNetworkInstanceLoopback(p NetworkInstanceLoopbackProcessor, reverse bool, name string, id string, lo *NetworkInstanceLoopback) error

func ProcessNetworkInstanceLoopbackAddr

func ProcessNetworkInstanceLoopbackAddr(p NetworkInstanceLoopbackAddrProcessor, reverse bool, name string, id string, index string, addr *NetworkInstanceLoopbackAddr) error

func ProcessNetworkInstanceLoopbackAddrConfig

func ProcessNetworkInstanceLoopbackAddrConfig(p NetworkInstanceLoopbackAddrConfigProcessor, reverse bool, name string, id string, index string, config *NetworkInstanceLoopbackAddrConfig) error

func ProcessNetworkInstanceLoopbackAddrs

func ProcessNetworkInstanceLoopbackAddrs(p NetworkInstanceLoopbackAddrProcessor, reverse bool, name string, id string, addrs NetworkInstanceLoopbackAddrs) error

func ProcessNetworkInstanceLoopbackConfig

func ProcessNetworkInstanceLoopbackConfig(p NetworkInstanceLoopbackConfigProcessor, reverse bool, name string, id string, config *NetworkInstanceLoopbackConfig) error

func ProcessNetworkInstanceLoopbacks

func ProcessNetworkInstanceLoopbacks(p NetworkInstanceLoopbackProcessor, reverse bool, name string, los NetworkInstanceLoopbacks) error

func ProcessNetworkInstanceProtocols

func ProcessNetworkInstanceProtocols(p NetworkInstanceProtocolProcessor, reverse bool, name string, protos NetworkInstanceProtocols) error

func ProcessNetworkInstances

func ProcessNetworkInstances(p NetworkInstanceProcessor, reverse bool, nis NetworkInstances) error

func ProcessOspfv2

func ProcessOspfv2(p Ospfv2Processor, reverse bool, name string, key *NetworkInstanceProtocolKey, ospf *Ospfv2) error

func ProcessOspfv2Area

func ProcessOspfv2Area(p Ospfv2AreaProcessor, reverse bool, name string, key *NetworkInstanceProtocolKey, areaId string, area *Ospfv2Area) error

func ProcessOspfv2AreaConfig

func ProcessOspfv2AreaConfig(p Ospfv2AreaConfigProcessor, reverse bool, name string, key *NetworkInstanceProtocolKey, areaId string, config *Ospfv2AreaConfig) error

func ProcessOspfv2Areas

func ProcessOspfv2Areas(p Ospfv2AreaProcessor, reverse bool, name string, key *NetworkInstanceProtocolKey, areas Ospfv2Areas) error

func ProcessOspfv2Global

func ProcessOspfv2Global(p Ospfv2GlobalProcessor, reverse bool, name string, key *NetworkInstanceProtocolKey, global *Ospfv2Global) error

func ProcessOspfv2GlobalConfig

func ProcessOspfv2GlobalConfig(p Ospfv2GlobalConfigProcessor, reverse bool, name string, key *NetworkInstanceProtocolKey, config *Ospfv2GlobalConfig) error

func ProcessOspfv2Interface

func ProcessOspfv2Interface(p Ospfv2InterfaceProcessor, reverse bool, name string, key *NetworkInstanceProtocolKey, areaId string, ifaceId string, iface *Ospfv2Interface) error

func ProcessOspfv2InterfaceConfig

func ProcessOspfv2InterfaceConfig(p Ospfv2InterfaceConfigProcessor, reverse bool, name string, key *NetworkInstanceProtocolKey, areaId string, ifaceId string, config *Ospfv2InterfaceConfig) error

func ProcessOspfv2InterfaceRef

func ProcessOspfv2InterfaceRef(p Ospfv2InterfaceRefProcessor, reverse bool, name string, key *NetworkInstanceProtocolKey, areaId string, ifaceId string, ifaceRef *InterfaceRef) error

func ProcessOspfv2InterfaceTimers

func ProcessOspfv2InterfaceTimers(p Ospfv2InterfaceTimersProcessor, reverse bool, name string, key *NetworkInstanceProtocolKey, areaId string, ifaceId string, timers *Ospfv2InterfaceTimers) error

func ProcessOspfv2Interfaces

func ProcessOspfv2Interfaces(p Ospfv2InterfaceProcessor, reverse bool, name string, key *NetworkInstanceProtocolKey, areaId string, ifaces Ospfv2Interfaces) error

func ProcessOspfv3 added in v0.3.0

func ProcessOspfv3(p Ospfv3Processor, reverse bool, name string, key *NetworkInstanceProtocolKey, ospf *Ospfv3) error

func ProcessOspfv3Area added in v0.3.0

func ProcessOspfv3Area(p Ospfv3AreaProcessor, reverse bool, name string, key *NetworkInstanceProtocolKey, areaId string, area *Ospfv3Area) error

func ProcessOspfv3AreaConfig added in v0.3.0

func ProcessOspfv3AreaConfig(p Ospfv3AreaConfigProcessor, reverse bool, name string, key *NetworkInstanceProtocolKey, areaId string, config *Ospfv3AreaConfig) error

func ProcessOspfv3AreaRange added in v0.3.0

func ProcessOspfv3AreaRange(p Ospfv3AreaRangeProcessor, reverse bool, name string, key *NetworkInstanceProtocolKey, areaId string, rngkey *Ospfv3AreaRangeKey, rng *Ospfv3AreaRange) error

func ProcessOspfv3AreaRangeConfig added in v0.3.0

func ProcessOspfv3AreaRangeConfig(p Ospfv3AreaRangeConfigProcessor, reverse bool, name string, nikey *NetworkInstanceProtocolKey, areaId string, rngkey *Ospfv3AreaRangeKey, config *Ospfv3AreaRangeConfig) error

func ProcessOspfv3AreaRanges added in v0.3.0

func ProcessOspfv3AreaRanges(p Ospfv3AreaRangeProcessor, reverse bool, name string, nikey *NetworkInstanceProtocolKey, areaId string, ranges Ospfv3AreaRanges) error

func ProcessOspfv3Areas added in v0.3.0

func ProcessOspfv3Areas(p Ospfv3AreaProcessor, reverse bool, name string, key *NetworkInstanceProtocolKey, areas Ospfv3Areas) error

func ProcessOspfv3Global added in v0.3.0

func ProcessOspfv3Global(p Ospfv3GlobalProcessor, reverse bool, name string, key *NetworkInstanceProtocolKey, global *Ospfv3Global) error

func ProcessOspfv3GlobalConfig added in v0.3.0

func ProcessOspfv3GlobalConfig(p Ospfv3GlobalConfigProcessor, reverse bool, name string, key *NetworkInstanceProtocolKey, config *Ospfv3GlobalConfig) error

func ProcessOspfv3Interface added in v0.3.0

func ProcessOspfv3Interface(p Ospfv3InterfaceProcessor, reverse bool, name string, key *NetworkInstanceProtocolKey, areaId string, ifaceId string, iface *Ospfv3Interface) error

func ProcessOspfv3InterfaceConfig added in v0.3.0

func ProcessOspfv3InterfaceConfig(p Ospfv3InterfaceConfigProcessor, reverse bool, name string, key *NetworkInstanceProtocolKey, areaId string, ifaceId string, config *Ospfv3InterfaceConfig) error

func ProcessOspfv3InterfaceRef added in v0.3.0

func ProcessOspfv3InterfaceRef(p Ospfv3InterfaceRefProcessor, reverse bool, name string, key *NetworkInstanceProtocolKey, areaId string, ifaceId string, ifaceRef *InterfaceRef) error

func ProcessOspfv3InterfaceTimers added in v0.3.0

func ProcessOspfv3InterfaceTimers(p Ospfv3InterfaceTimersProcessor, reverse bool, name string, key *NetworkInstanceProtocolKey, areaId string, ifaceId string, timers *Ospfv3InterfaceTimers) error

func ProcessOspfv3Interfaces added in v0.3.0

func ProcessOspfv3Interfaces(p Ospfv3InterfaceProcessor, reverse bool, name string, key *NetworkInstanceProtocolKey, areaId string, ifaces Ospfv3Interfaces) error

func ProcessPolicyBgpActions

func ProcessPolicyBgpActions(p PolicyBgpActionsProcessor, reverse bool, name string, stmtName string, actions *PolicyBgpActions) error

func ProcessPolicyBgpActionsConfig

func ProcessPolicyBgpActionsConfig(p PolicyBgpActionsConfigProcessor, reverse bool, name string, stmtName string, config *PolicyBgpActionsConfig) error

func ProcessPolicyDefinedSets

func ProcessPolicyDefinedSets(p PolicyDefinedSetsProcessor, reverse bool, polsets *PolicyDefinedSets) error

func ProcessPolicyDefinition

func ProcessPolicyDefinition(p PolicyDefinitionProcessor, reverse bool, name string, poldef *PolicyDefinition) error

func ProcessPolicyDefinitionConfig

func ProcessPolicyDefinitionConfig(p PolicyDefinitionConfigProcessor, reverse bool, name string, config *PolicyDefinitionConfig) error

func ProcessPolicyDefinitions

func ProcessPolicyDefinitions(p PolicyDefinitionProcessor, reverse bool, poldefs PolicyDefinitions) error

func ProcessPolicyNeighborSet

func ProcessPolicyNeighborSet(p PolicyNeighborSetProcessor, reverse bool, name string, neigh *PolicyNeighborSet) error

func ProcessPolicyNeighborSetConfig

func ProcessPolicyNeighborSetConfig(p PolicyNeighborSetConfigProcessor, reverse bool, name string, config *PolicyNeighborSetConfig) error

func ProcessPolicyNeighborSets

func ProcessPolicyNeighborSets(p PolicyNeighborSetProcessor, reverse bool, neighs PolicyNeighborSets) error

func ProcessPolicyPrefixSet

func ProcessPolicyPrefixSet(p PolicyPrefixSetProcessor, reverse bool, name string, prefix *PolicyPrefixSet) error

func ProcessPolicyPrefixSetConfig

func ProcessPolicyPrefixSetConfig(p PolicyPrefixSetConfigProcessor, reverse bool, name string, config *PolicyPrefixSetConfig) error

func ProcessPolicyPrefixSetPrefix

func ProcessPolicyPrefixSetPrefix(p PolicyPrefixSetPrefixProcessor, reverse bool, name string, pfxkey *PolicyPrefixSetPrefixKey, prefix *PolicyPrefixSetPrefix) error

func ProcessPolicyPrefixSetPrefixes

func ProcessPolicyPrefixSetPrefixes(p PolicyPrefixSetPrefixProcessor, reverse bool, name string, prefixes PolicyPrefixSetPrefixes) error

func ProcessPolicyPrefixSets

func ProcessPolicyPrefixSets(p PolicyPrefixSetProcessor, reverse bool, prefixes PolicyPrefixSets) error

func ProcessPolicyStatement

func ProcessPolicyStatement(p PolicyStatementProcessor, reverse bool, name string, stmtName string, stmt *PolicyStatement) error

func ProcessPolicyStatementActions

func ProcessPolicyStatementActions(p PolicyStatementActionsProcessor, reverse bool, name string, stmtName string, actions *PolicyStatementActions) error

func ProcessPolicyStatementActionsConfig

func ProcessPolicyStatementActionsConfig(p PolicyStatementActionsConfigProcessor, reverse bool, name string, stmtName string, config *PolicyStatementActionsConfig) error

func ProcessPolicyStatementConfig

func ProcessPolicyStatementConfig(p PolicyStatementConfigProcessor, reverse bool, name string, stmtName string, config *PolicyStatementConfig) error

func ProcessPolicyStatements

func ProcessPolicyStatements(p PolicyStatementProcessor, reverse bool, name string, stmts PolicyStatements) error

func ProcessPolicyTagSet

func ProcessPolicyTagSet(p PolicyTagSetProcessor, reverse bool, name string, tag *PolicyTagSet) error

func ProcessPolicyTagSetConfig

func ProcessPolicyTagSetConfig(p PolicyTagSetConfigProcessor, reverse bool, name string, config *PolicyTagSetConfig) error

func ProcessPolicyTagSets

func ProcessPolicyTagSets(p PolicyTagSetProcessor, reverse bool, tags PolicyTagSets) error

func ProcessRoutingPolicy

func ProcessRoutingPolicy(p RoutingPolicyProcessor, reverse bool, rpol *RoutingPolicy) error

func ProcessStaticRoute

func ProcessStaticRoute(p StaticRouteProcessor, reverse bool, name string, key *NetworkInstanceProtocolKey, rtkey *StaticRouteKey, route *StaticRoute) error

func ProcessStaticRouteConfig

func ProcessStaticRouteConfig(p StaticRouteConfigProcessor, reverse bool, name string, key *NetworkInstanceProtocolKey, rtkey *StaticRouteKey, config *StaticRouteConfig) error

func ProcessStaticRouteNexthop

func ProcessStaticRouteNexthop(p StaticRouteNexthopProcessor, reverse bool, name string, key *NetworkInstanceProtocolKey, rtkey *StaticRouteKey, index string, nexthop *StaticRouteNexthop) error

func ProcessStaticRouteNexthopConfig

func ProcessStaticRouteNexthopConfig(p StaticRouteNexthopConfigProcessor, reverse bool, name string, key *NetworkInstanceProtocolKey, rtkey *StaticRouteKey, index string, config *StaticRouteNexthopConfig) error

func ProcessStaticRouteNexthopIfaceRef

func ProcessStaticRouteNexthopIfaceRef(p StaticRouteNexthopIfaceRefProcessor, reverse bool, name string, key *NetworkInstanceProtocolKey, rtkey *StaticRouteKey, index string, ifaceRef *InterfaceRef) error

func ProcessStaticRouteNexthops

func ProcessStaticRouteNexthops(p StaticRouteNexthopProcessor, reverse bool, name string, key *NetworkInstanceProtocolKey, rtkey *StaticRouteKey, nexthops StaticRouteNexthops) error

func ProcessStaticRoutes

func ProcessStaticRoutes(p StaticRouteProcessor, reverse bool, name string, key *NetworkInstanceProtocolKey, routes StaticRoutes) error

func ProcessSubinterface

func ProcessSubinterface(p subinterfaceProcessor, reverse bool, name string, index uint32, subif *Subinterface) error

func ProcessSubinterfaceConfig

func ProcessSubinterfaceConfig(p SubinterfaceConfigProcessor, reverse bool, name string, index uint32, config *SubinterfaceConfig) error

func ProcessSubinterfaceIPv4

func ProcessSubinterfaceIPv4(p SubinterfaceIPv4Processor, reverse bool, name string, index uint32, ipv4 *SubinterfaceIPv4) error

func ProcessSubinterfaceIPv4Addr

func ProcessSubinterfaceIPv4Addr(p subinterfaceIPv4AddrProcessor, reverse bool, name string, index uint32, ip string, addr *IPAddress) error

func ProcessSubinterfaceIPv4AddressConfig

func ProcessSubinterfaceIPv4AddressConfig(p SubinterfaceIPv4AddressConfigProcessor, reverse bool, name string, index uint32, ip string, config *IPAddressConfig) error

func ProcessSubinterfaceIPv4Addrs

func ProcessSubinterfaceIPv4Addrs(p SubinterfaceIPv4AddrProcessor, reverse bool, name string, index uint32, addrs IPAddresses) error

subinterface[index]/ipv4/addresses

func ProcessSubinterfaceIPv4Config

func ProcessSubinterfaceIPv4Config(p SubinterfaceIPv4ConfigProcessor, reverse bool, name string, index uint32, config *SubinterfaceIPv4Config) error

func ProcessSubinterfaceIPv6 added in v0.3.0

func ProcessSubinterfaceIPv6(p SubinterfaceIPv6Processor, reverse bool, name string, index uint32, ipv6 *SubinterfaceIPv6) error

func ProcessSubinterfaceIPv6Addr added in v0.3.0

func ProcessSubinterfaceIPv6Addr(p subinterfaceIPv6AddrProcessor, reverse bool, name string, index uint32, ip string, addr *IPAddress) error

func ProcessSubinterfaceIPv6AddressConfig added in v0.3.0

func ProcessSubinterfaceIPv6AddressConfig(p SubinterfaceIPv6AddressConfigProcessor, reverse bool, name string, index uint32, ip string, config *IPAddressConfig) error

func ProcessSubinterfaceIPv6Addrs added in v0.3.0

func ProcessSubinterfaceIPv6Addrs(p SubinterfaceIPv6AddrProcessor, reverse bool, name string, index uint32, addrs IPAddresses) error

subinterface[index]/ipv6/addresses

func ProcessSubinterfaceIPv6Config added in v0.3.0

func ProcessSubinterfaceIPv6Config(p SubinterfaceIPv6ConfigProcessor, reverse bool, name string, index uint32, config *SubinterfaceIPv6Config) error

func ProcessSubinterfaces

func ProcessSubinterfaces(p subinterfaceProcessor, reverse bool, name string, subifaces Subinterfaces) error

Types

type AddressFamily

type AddressFamily int
const (
	ADDRESS_FAMILY AddressFamily = iota
	ADDRESS_FAMILY_IPV4
	ADDRESS_FAMILY_IPV6
	ADDRESS_FAMILY_MPLS
	ADDRESS_FAMILY_L2_ETHERNET
)

func ParseAddressFamily

func ParseAddressFamily(s string) (AddressFamily, error)

func (AddressFamily) String

func (v AddressFamily) String() string

type Bgp

type Bgp struct {
	nclib.SrChanges `xml:"-"`

	Global    *BgpGlobal   `xml:"global"`
	Zebra     *BgpZebra    `xml:"zebra"`
	Neighbors BgpNeighbors `xml:"neighbors"`
}

bgp

func NewBgp

func NewBgp() *Bgp

func (*Bgp) Put

func (b *Bgp) Put(nodes []*ncxml.XPathNode, value string) error

func (*Bgp) String

func (b *Bgp) String() string

type BgpAfiSafi

type BgpAfiSafi struct {
	nclib.SrChanges `xml:"-"`

	AfiSafiName string            `xml:"afi-safi-name"`
	Config      *BgpAfiSafiConfig `xml:"config"`
}

afi-safis/afi-safi[afi-safi-name]

func NewBgpAfiSafi

func NewBgpAfiSafi(afiSafiName string) *BgpAfiSafi

func (*BgpAfiSafi) Put

func (b *BgpAfiSafi) Put(nodes []*ncxml.XPathNode, value string) error

func (*BgpAfiSafi) String

func (b *BgpAfiSafi) String() string

type BgpAfiSafiConfig

type BgpAfiSafiConfig struct {
	nclib.SrChanges `xml:"-"`

	AfiSafiName BgpAfiSafiType `xml:"afi-safi-name"`
}

afi-safis/afi-safi[afi-safi-name]/config

func NewBgpAfiSafiConfig

func NewBgpAfiSafiConfig() *BgpAfiSafiConfig

func (*BgpAfiSafiConfig) Put

func (b *BgpAfiSafiConfig) Put(nodes []*ncxml.XPathNode, value string) error

func (*BgpAfiSafiConfig) String

func (b *BgpAfiSafiConfig) String() string

type BgpAfiSafiType

type BgpAfiSafiType uint32

func NewBgpAfiSafiType

func NewBgpAfiSafiType(afi uint16, safi uint16) BgpAfiSafiType

func ParseBgpAfiSafiType

func ParseBgpAfiSafiType(s string) (BgpAfiSafiType, error)

func (BgpAfiSafiType) AFI

func (b BgpAfiSafiType) AFI() uint16

func (BgpAfiSafiType) MarshalXML

func (b BgpAfiSafiType) MarshalXML(e *xml.Encoder, start xml.StartElement) error

func (BgpAfiSafiType) SAFI

func (b BgpAfiSafiType) SAFI() uint16

func (BgpAfiSafiType) String

func (b BgpAfiSafiType) String() string

type BgpAfiSafis

type BgpAfiSafis map[string]*BgpAfiSafi

afi-safis

func NewBgpAfiSafis

func NewBgpAfiSafis() BgpAfiSafis

func (BgpAfiSafis) MarshalXML

func (b BgpAfiSafis) MarshalXML(e *xml.Encoder, start xml.StartElement) error

func (BgpAfiSafis) Put

func (b BgpAfiSafis) Put(nodes []*ncxml.XPathNode, value string) error

type BgpGlobal

type BgpGlobal struct {
	nclib.SrChanges `xml:"-"`

	Config *BgpGlobalConfig `xml:"config"`
}

func NewBgpGlobal

func NewBgpGlobal() *BgpGlobal

func (*BgpGlobal) Put

func (b *BgpGlobal) Put(nodes []*ncxml.XPathNode, value string) error

func (*BgpGlobal) String

func (b *BgpGlobal) String() string

type BgpGlobalConfig

type BgpGlobalConfig struct {
	nclib.SrChanges `xml:"-"`

	As       uint32 `xml:"as"`
	RouterId string `xml:"router-id"`
}

func NewBgpGlobalConfig

func NewBgpGlobalConfig() *BgpGlobalConfig

func (*BgpGlobalConfig) Put

func (b *BgpGlobalConfig) Put(nodes []*ncxml.XPathNode, value string) error

func (*BgpGlobalConfig) String

func (b *BgpGlobalConfig) String() string

type BgpGlobalConfigProcessor

type BgpGlobalConfigProcessor interface {
	BgpGlobalConfig(string, *NetworkInstanceProtocolKey, *BgpGlobalConfig) error
}

type BgpGlobalProcessor

type BgpGlobalProcessor interface {
	BgpGlobalConfigProcessor
}

type BgpNeighbor

type BgpNeighbor struct {
	nclib.SrChanges `xml:"-"`

	Address     string                `xml:"address"`
	Config      *BgpNeighborConfig    `xml:"config"`
	Timers      *BgpNeighborTimers    `xml:"timers"`
	Transport   *BgpNeighborTransport `xml:"transport"`
	AfiSafis    BgpAfiSafis           `xml:"afi-safis"`
	ApplyPolicy *PolicyApply          `xml:"apply-policy"`
}

func NewBgpNeighbor

func NewBgpNeighbor(addr string) *BgpNeighbor

func (*BgpNeighbor) Put

func (b *BgpNeighbor) Put(nodes []*ncxml.XPathNode, value string) error

func (*BgpNeighbor) String

func (b *BgpNeighbor) String() string

type BgpNeighborAfiSafiProcessor

type BgpNeighborAfiSafiProcessor interface {
	BgpNeighborAfiSafi(string, *NetworkInstanceProtocolKey, string, string, *BgpAfiSafi) error
	BgpNeighborAfiSafiConfig(string, *NetworkInstanceProtocolKey, string, string, *BgpAfiSafiConfig) error
}

bgp/neighbors/neighbor[addr]/afi-safis/afi-safi[afi-safi-name]

type BgpNeighborApplyPolicyProcessor

type BgpNeighborApplyPolicyProcessor interface {
	BgpNeighborApplyPolicyConfig(string, *NetworkInstanceProtocolKey, string, *PolicyApplyConfig) error
}

bgp/neighbors/neighbor[addr]/apply-policy

type BgpNeighborConfig

type BgpNeighborConfig struct {
	nclib.SrChanges `xml:"-"`

	Address net.IP `xml:"address"`
	PeerAs  uint32 `xml:"peer-as"`
	LocalAs uint32 `xml:"local-as"`
	Desc    string `xml:"description"`
}

func NewBgpNeighborConfig

func NewBgpNeighborConfig() *BgpNeighborConfig

func (*BgpNeighborConfig) Put

func (b *BgpNeighborConfig) Put(nodes []*ncxml.XPathNode, value string) error

func (*BgpNeighborConfig) String

func (b *BgpNeighborConfig) String() string

type BgpNeighborConfigProcessor

type BgpNeighborConfigProcessor interface {
	BgpNeighborConfig(string, *NetworkInstanceProtocolKey, string, *BgpNeighborConfig) error
}

type BgpNeighborTimers

type BgpNeighborTimers struct {
	nclib.SrChanges `xml:"-"`

	Config *BgpNeighborTimersConfig `xml:"config"`
}

bgp/neighbors/neighbor[addr]/timers

func NewBgpNeighborTimers

func NewBgpNeighborTimers() *BgpNeighborTimers

func (*BgpNeighborTimers) Put

func (b *BgpNeighborTimers) Put(nodes []*ncxml.XPathNode, value string) error

func (*BgpNeighborTimers) String

func (b *BgpNeighborTimers) String() string

type BgpNeighborTimersConfig

type BgpNeighborTimersConfig struct {
	nclib.SrChanges `xml:"-"`

	HoldTime  uint64 `xml:"hold-time"`
	KeepAlive uint64 `xml:"keep-alive"`
}

func NewBgpNeighborTimersConfig

func NewBgpNeighborTimersConfig() *BgpNeighborTimersConfig

func (*BgpNeighborTimersConfig) Put

func (b *BgpNeighborTimersConfig) Put(nodes []*ncxml.XPathNode, value string) error

func (*BgpNeighborTimersConfig) String

func (b *BgpNeighborTimersConfig) String() string

type BgpNeighborTimersConfigProcessor

type BgpNeighborTimersConfigProcessor interface {
	BgpNeighborTimersConfig(string, *NetworkInstanceProtocolKey, string, *BgpNeighborTimersConfig) error
}

type BgpNeighborTimersProcessor

type BgpNeighborTimersProcessor interface {
	BgpNeighborTimersConfigProcessor
}

type BgpNeighborTransport

type BgpNeighborTransport struct {
	nclib.SrChanges `xml:"-"`

	Config *BgpNeighborTransportConfig `xml:"config"`
}

func NewBgpNeighborTransport

func NewBgpNeighborTransport() *BgpNeighborTransport

func (*BgpNeighborTransport) Put

func (b *BgpNeighborTransport) Put(nodes []*ncxml.XPathNode, value string) error

func (*BgpNeighborTransport) String

func (b *BgpNeighborTransport) String() string

type BgpNeighborTransportConfig

type BgpNeighborTransportConfig struct {
	nclib.SrChanges `xml:"-"`

	LocalAddr net.IP `xml:"local-address"`
}

func NewBgpNeighborTransportConfig

func NewBgpNeighborTransportConfig() *BgpNeighborTransportConfig

func (*BgpNeighborTransportConfig) Put

func (b *BgpNeighborTransportConfig) Put(nodes []*ncxml.XPathNode, value string) error

func (*BgpNeighborTransportConfig) String

func (b *BgpNeighborTransportConfig) String() string

type BgpNeighborTransportConfigProcessor

type BgpNeighborTransportConfigProcessor interface {
	BgpNeighborTransportConfig(string, *NetworkInstanceProtocolKey, string, *BgpNeighborTransportConfig) error
}

type BgpNeighborTransportProcessor

type BgpNeighborTransportProcessor interface {
	BgpNeighborTransportConfigProcessor
}

type BgpNeighbors

type BgpNeighbors map[string]*BgpNeighbor

func NewBgpNeighbors

func NewBgpNeighbors() BgpNeighbors

func (BgpNeighbors) MarshalXML

func (b BgpNeighbors) MarshalXML(e *xml.Encoder, start xml.StartElement) error

func (BgpNeighbors) Put

func (b BgpNeighbors) Put(nodes []*ncxml.XPathNode, value string) error

type BgpNexthopType

type BgpNexthopType string
const (
	BGP_NEXTHOP_TYPE BgpNexthopType = "BGP_NEXTHOP_TYPE"
	BGP_NEXTHOP_SELF BgpNexthopType = "SELF"
)

func ParseBgpNexthopType

func ParseBgpNexthopType(s string) (BgpNexthopType, error)

func (BgpNexthopType) String

func (b BgpNexthopType) String() string

func (BgpNexthopType) Values

func (b BgpNexthopType) Values() (net.IP, BgpNexthopType, error)

type BgpProcessor

type BgpProcessor interface {
	BgpGlobalProcessor
	BgpZebraProcessor
	BgpNeighborProcessor
	// contains filtered or unexported methods
}

type BgpZebra

type BgpZebra struct {
	nclib.SrChanges `xml:"-"`

	Config *BgpZebraConfig `xml:"config"`
}

func NewBgpZebra

func NewBgpZebra() *BgpZebra

func (*BgpZebra) Put

func (b *BgpZebra) Put(nodes []*ncxml.XPathNode, value string) error

func (*BgpZebra) String

func (b *BgpZebra) String() string

type BgpZebraConfig

type BgpZebraConfig struct {
	nclib.SrChanges `xml:"-"`

	Enabled      bool                  `xml:"enabled"`
	Version      uint32                `xml:"version"`
	Url          string                `xml:"url"`
	RedistRoutes []InstallProtocolType `xml:"redistribute"`
}

func NewBgpZebraConfig

func NewBgpZebraConfig() *BgpZebraConfig

func (*BgpZebraConfig) Put

func (b *BgpZebraConfig) Put(nodes []*ncxml.XPathNode, value string) error

func (*BgpZebraConfig) String

func (b *BgpZebraConfig) String() string

type BgpZebraConfigProcessor

type BgpZebraConfigProcessor interface {
	BgpZebraConfig(string, *NetworkInstanceProtocolKey, *BgpZebraConfig) error
}

type BgpZebraProcessor

type BgpZebraProcessor interface {
	BgpZebraConfigProcessor
}

type Encapsulation

type Encapsulation int

ENCAPSULATION

const (
	ENCAPSULATION Encapsulation = iota
	ENCAPSULATION_MPLS
	ENCAPSULATION_VXLAN
)

func ParseEncapsulation

func ParseEncapsulation(s string) (Encapsulation, error)

func (Encapsulation) MarshalXML

func (t Encapsulation) MarshalXML(e *xml.Encoder, start xml.StartElement) error

func (Encapsulation) String

func (v Encapsulation) String() string

type EndpointType

type EndpointType int

ENDPOINT_TYPE

const (
	ENDPOINT_TYPE EndpointType = iota
	ENDPOINT_LOCAL
	ENDPOINT_REMOTE
)

func ParseEndpointType

func ParseEndpointType(s string) (EndpointType, error)

func (EndpointType) MarshalXML

func (t EndpointType) MarshalXML(e *xml.Encoder, start xml.StartElement) error

func (EndpointType) String

func (v EndpointType) String() string

type IPAddress

type IPAddress struct {
	nclib.SrChanges `xml:"-"`

	IP     string           `xml:"ip"`
	Config *IPAddressConfig `xml:"config"`
}

addresses/address[ip]

func NewIPAddress

func NewIPAddress(ip string) *IPAddress

func (*IPAddress) Put

func (a *IPAddress) Put(nodes []*ncxml.XPathNode, value string) error

func (*IPAddress) SetConfig

func (a *IPAddress) SetConfig(config *IPAddressConfig)

func (*IPAddress) SetIP

func (a *IPAddress) SetIP(ip string)

func (*IPAddress) String

func (a *IPAddress) String() string

type IPAddressConfig

type IPAddressConfig struct {
	nclib.SrChanges `xml:"-"`

	IP        net.IP `xml:"ip"`
	PrefixLen uint8  `xml:"prefix-length"`
}

addresses/address[ip]/config

func NewIPAddressConfig

func NewIPAddressConfig() *IPAddressConfig

func (*IPAddressConfig) IFAddr

func (c *IPAddressConfig) IFAddr() *ncnet.IFAddr

func (*IPAddressConfig) Put

func (c *IPAddressConfig) Put(nodes []*ncxml.XPathNode, value string) error

func (*IPAddressConfig) SetIP

func (c *IPAddressConfig) SetIP(ip net.IP)

func (*IPAddressConfig) SetPLen

func (c *IPAddressConfig) SetPLen(plen uint8)

func (*IPAddressConfig) String

func (c *IPAddressConfig) String() string

type IPAddresses

type IPAddresses map[string]*IPAddress

addresses

func NewIPAddresses

func NewIPAddresses() IPAddresses

func (IPAddresses) MarshalXML

func (a IPAddresses) MarshalXML(e *xml.Encoder, start xml.StartElement) error

func (IPAddresses) Put

func (a IPAddresses) Put(nodes []*ncxml.XPathNode, value string) error

type InstallProtocolType

type InstallProtocolType int
const (
	INSTALL_PROTOCOL_TYPE InstallProtocolType = iota
	INSTALL_PROTOCOL_BGP
	INSTALL_PROTOCOL_ISIS
	INSTALL_PROTOCOL_OSPF
	INSTALL_PROTOCOL_OSPF3
	INSTALL_PROTOCOL_STATIC
	INSTALL_PROTOCOL_DIRECTLY_CONNECTED
	INSTALL_PROTOCOL_LOCAL_AGGREGATE
)

func ParseInstallProtocolType

func ParseInstallProtocolType(s string) (InstallProtocolType, error)

func (InstallProtocolType) String

func (v InstallProtocolType) String() string

type Interface

type Interface struct {
	nclib.SrChanges `xml:"-"`

	Name          string             `xml:"name"`
	Config        *InterfaceConfig   `xml:"config"`
	Ethernet      *InterfaceEthernet `xml:"ethernet"`
	Subinterfaces Subinterfaces      `xml:"subinterfaces"`
}

/interfaces/interface[name]

func NewInterface

func NewInterface(name string) *Interface

func (*Interface) Put

func (i *Interface) Put(nodes []*ncxml.XPathNode, value string) error

func (*Interface) SetConfig

func (i *Interface) SetConfig(config *InterfaceConfig)

func (*Interface) SetEthernet

func (i *Interface) SetEthernet(ethernet *InterfaceEthernet)

func (*Interface) SetName

func (i *Interface) SetName(name string)

func (*Interface) SetSubinterfaces

func (i *Interface) SetSubinterfaces(subifs Subinterfaces)

func (*Interface) String

func (i *Interface) String() string

type InterfaceConfig

type InterfaceConfig struct {
	nclib.SrChanges `xml:"-"`

	Name    string               `xml:"name"`
	Type    ncianalib.IANAifType `xml:"type"`
	Enabled bool                 `xml:"enabled"`
	Mtu     uint16               `xml:"mtu"`
	Desc    string               `xml:"description"`
}

/interfaces/interface[name]/config

func NewInterfaceConfig

func NewInterfaceConfig() *InterfaceConfig

func (*InterfaceConfig) Put

func (c *InterfaceConfig) Put(nodes []*ncxml.XPathNode, value string) error

func (*InterfaceConfig) SetDesc

func (c *InterfaceConfig) SetDesc(desc string)

func (*InterfaceConfig) SetEnabled

func (c *InterfaceConfig) SetEnabled(enabled bool)

func (*InterfaceConfig) SetMtu

func (c *InterfaceConfig) SetMtu(mtu uint16)

func (*InterfaceConfig) SetName

func (c *InterfaceConfig) SetName(name string)

func (*InterfaceConfig) SetType

func (c *InterfaceConfig) SetType(t ncianalib.IANAifType)

func (*InterfaceConfig) String

func (c *InterfaceConfig) String() string

type InterfaceConfigProcessor

type InterfaceConfigProcessor interface {
	InterfaceConfig(string, *InterfaceConfig) error
}

type InterfaceEthernet

type InterfaceEthernet struct {
	nclib.SrChanges `xml:"-"`

	XMLName xml.Name                 `xml:"https://github.com/beluganos/beluganos/yang/interfaces/ethernet"`
	Config  *InterfaceEthernetConfig `xml:"config"`
}

subinterface[index]/ethernet

func NewInterfaceEthernet

func NewInterfaceEthernet() *InterfaceEthernet

func (*InterfaceEthernet) Put

func (i *InterfaceEthernet) Put(nodes []*ncxml.XPathNode, value string) error

func (*InterfaceEthernet) SetConfig

func (i *InterfaceEthernet) SetConfig(config *InterfaceEthernetConfig)

func (*InterfaceEthernet) String

func (i *InterfaceEthernet) String() string

type InterfaceEthernetConfig

type InterfaceEthernetConfig struct {
	nclib.SrChanges `xml:"-"`

	MacAddr net.HardwareAddr `xml:"mac-address,omitempty"`
}

subinterface[index]/ethernet/config

func NewInterfaceEthernetConfig

func NewInterfaceEthernetConfig() *InterfaceEthernetConfig

func (*InterfaceEthernetConfig) Put

func (c *InterfaceEthernetConfig) Put(nodes []*ncxml.XPathNode, value string) error

func (*InterfaceEthernetConfig) SetMacAddr

func (c *InterfaceEthernetConfig) SetMacAddr(macAddr net.HardwareAddr)

func (*InterfaceEthernetConfig) String

func (c *InterfaceEthernetConfig) String() string

type InterfaceEthernetConfigProcessor

type InterfaceEthernetConfigProcessor interface {
	InterfaceEthernetConfig(string, *InterfaceEthernetConfig) error
}

type InterfaceEthernetProcessor

type InterfaceEthernetProcessor interface {
	InterfaceEthernetConfigProcessor
}

type InterfaceProcessor

type InterfaceProcessor interface {
	InterfaceConfigProcessor
	InterfaceEthernetProcessor
	SubinterfaceProcessor
	// contains filtered or unexported methods
}

type InterfaceRef

type InterfaceRef struct {
	nclib.SrChanges `xml:"-"`

	Config *InterfaceRefConfig `xml:"config"`
}

interface-ref

func NewInterfaceRef

func NewInterfaceRef() *InterfaceRef

func (*InterfaceRef) Put

func (i *InterfaceRef) Put(nodes []*ncxml.XPathNode, value string) error

func (*InterfaceRef) SetConfig

func (i *InterfaceRef) SetConfig(config *InterfaceRefConfig)

func (*InterfaceRef) String

func (i *InterfaceRef) String() string

type InterfaceRefConfig

type InterfaceRefConfig struct {
	nclib.SrChanges `xml:"-"`

	Iface    string `xml:"interface"`
	SubIface uint32 `xml:"subinterface"`
}

interface-ref/config

func NewInterfaceRefConfig

func NewInterfaceRefConfig() *InterfaceRefConfig

func (*InterfaceRefConfig) IFName

func (c *InterfaceRefConfig) IFName() string

func (*InterfaceRefConfig) Put

func (c *InterfaceRefConfig) Put(nodes []*ncxml.XPathNode, value string) error

func (*InterfaceRefConfig) SetIface

func (c *InterfaceRefConfig) SetIface(iface string)

func (*InterfaceRefConfig) SetSubIface

func (c *InterfaceRefConfig) SetSubIface(subiface uint32)

func (*InterfaceRefConfig) String

func (c *InterfaceRefConfig) String() string

type Interfaces

type Interfaces map[string]*Interface

/interfaces

func NewInterfaces

func NewInterfaces() Interfaces

func (Interfaces) MarshalXML

func (i Interfaces) MarshalXML(e *xml.Encoder, start xml.StartElement) error

func (Interfaces) Put

func (i Interfaces) Put(nodes []*ncxml.XPathNode, value string) error

type LabelAllocationMode

type LabelAllocationMode int

LABEL_ALLOCATION_MODE

const (
	LABEL_ALLOCATION_MODE LabelAllocationMode = iota
	LABEL_ALLOCATION_PER_PREFIX
	LABEL_ALLOCATION_PER_NEXTHOP
	LABEL_ALLOCATION_INSTANCE_LABEL
)

func ParseLabelAllocationMode

func ParseLabelAllocationMode(s string) (LabelAllocationMode, error)

func (LabelAllocationMode) MarshalXML

func (t LabelAllocationMode) MarshalXML(e *xml.Encoder, start xml.StartElement) error

func (LabelAllocationMode) String

func (v LabelAllocationMode) String() string

type LocalDefinedNexthop

type LocalDefinedNexthop int
const (
	LOCAL_DEFINED_NEXT_HOP LocalDefinedNexthop = iota
	LOCAL_DEFINED_NEXT_HOP_DROP
	LOCAL_DEFINED_NEXT_HOP_LOCAL_LINK
)

func ParseLocalDefinedNexthop

func ParseLocalDefinedNexthop(s string) (LocalDefinedNexthop, error)

func ParseLocalDefinedNexthops

func ParseLocalDefinedNexthops(s string) (net.IP, LocalDefinedNexthop, error)

func (LocalDefinedNexthop) String

func (v LocalDefinedNexthop) String() string

type Mpls

type Mpls struct {
	nclib.SrChanges `xml:"-"`

	Global    *MplsGlobal       `xml:"global"`
	SigProtos *MplsSigProtocols `xml:"signaling-protocols"`
}

mpls

func NewMpls

func NewMpls() *Mpls

func (*Mpls) Put

func (m *Mpls) Put(nodes []*ncxml.XPathNode, value string) error

func (*Mpls) String

func (m *Mpls) String() string

type MplsConfig

type MplsConfig struct {
	nclib.SrChanges `xml:"-"`

	NullLabel MplsNullLabelType `xml:"null-label"`
}

mpls/global/config

func NewMplsConfig

func NewMplsConfig() *MplsConfig

func (*MplsConfig) Put

func (c *MplsConfig) Put(nodes []*ncxml.XPathNode, value string) error

func (*MplsConfig) String

func (c *MplsConfig) String() string

type MplsConfigProcessor

type MplsConfigProcessor interface {
	MplsConfig(string, *MplsConfig) error
}

type MplsGlobal

type MplsGlobal struct {
	nclib.SrChanges `xml:"-"`

	Config     *MplsConfig        `xml:"config"`
	IfaceAttrs MplsInterfaceAttrs `xml:"interface-attributes"`
}

mpls/global

func NewMplsGlobal

func NewMplsGlobal() *MplsGlobal

func (*MplsGlobal) Put

func (m *MplsGlobal) Put(nodes []*ncxml.XPathNode, value string) error

func (*MplsGlobal) String

func (m *MplsGlobal) String() string

type MplsGlobalProcessor

type MplsGlobalProcessor interface {
	MplsConfigProcessor
	MplsInterfaceAttrProcessor
}

type MplsInterfaceAttr

type MplsInterfaceAttr struct {
	nclib.SrChanges `xml:"-"`

	IfaceId  string                   `xml:"interface-id"`
	Config   *MplsInterfaceAttrConfig `xml:"config"`
	IfaceRef *InterfaceRef            `xml:"interface-ref"`
}

mpls/global/interface-attributes/interface[interface-id]

func NewMplsInterfaceAttr

func NewMplsInterfaceAttr(ifaceId string) *MplsInterfaceAttr

func (*MplsInterfaceAttr) Put

func (a *MplsInterfaceAttr) Put(nodes []*ncxml.XPathNode, value string) error

func (*MplsInterfaceAttr) String

func (a *MplsInterfaceAttr) String() string

type MplsInterfaceAttrConfig

type MplsInterfaceAttrConfig struct {
	nclib.SrChanges `xml:"-"`

	IfaceId string `xml:"interface-id"`
}

mpls/global/interface-attributes/interface[interface-id]/config

func NewMplsInterfaceAttrConfig

func NewMplsInterfaceAttrConfig() *MplsInterfaceAttrConfig

func (*MplsInterfaceAttrConfig) Put

func (c *MplsInterfaceAttrConfig) Put(nodes []*ncxml.XPathNode, value string) error

func (*MplsInterfaceAttrConfig) String

func (c *MplsInterfaceAttrConfig) String() string

type MplsInterfaceAttrConfigProcessor

type MplsInterfaceAttrConfigProcessor interface {
	MplsInterfaceAttrConfig(string, string, *MplsInterfaceAttrConfig) error
}

type MplsInterfaceAttrProcessor

type MplsInterfaceAttrProcessor interface {
	MplsInterfaceAttrConfigProcessor
	MplsInterfaceAttrRefProcessor
	// contains filtered or unexported methods
}

type MplsInterfaceAttrRefProcessor

type MplsInterfaceAttrRefProcessor interface {
	MplsInterfaceAttrRefConfig(string, string, *InterfaceRefConfig) error
}

mpls/global/interface-attributes/interface[interface-id]/interface-ref

type MplsInterfaceAttrs

type MplsInterfaceAttrs map[string]*MplsInterfaceAttr

mpls/global/interface-attributes

func NewMplsInterfaceAttrs

func NewMplsInterfaceAttrs() MplsInterfaceAttrs

func (MplsInterfaceAttrs) MarshalXML

func (a MplsInterfaceAttrs) MarshalXML(e *xml.Encoder, start xml.StartElement) error

func (MplsInterfaceAttrs) Put

func (a MplsInterfaceAttrs) Put(nodes []*ncxml.XPathNode, value string) error

type MplsLdp

type MplsLdp struct {
	nclib.SrChanges `xml:"-"`

	Global *MplsLdpGlobal `xml:"global"`
}

mpls/signaling-protocols/ldp

func NewMplsLdp

func NewMplsLdp() *MplsLdp

func (*MplsLdp) Put

func (m *MplsLdp) Put(nodes []*ncxml.XPathNode, value string) error

func (*MplsLdp) String

func (m *MplsLdp) String() string

type MplsLdpAddressFamily

type MplsLdpAddressFamily struct {
	nclib.SrChanges `xml:"-"`

	IPv4 *MplsLdpAddressFamilyV4 `xml:"ipv4"`
}

mpls/signaling-protocols/ldp/global/address-family

func NewMplsLdpAddressFamily

func NewMplsLdpAddressFamily() *MplsLdpAddressFamily

func (*MplsLdpAddressFamily) Put

func (m *MplsLdpAddressFamily) Put(nodes []*ncxml.XPathNode, value string) error

func (*MplsLdpAddressFamily) String

func (m *MplsLdpAddressFamily) String() string

type MplsLdpAddressFamilyProcessor

type MplsLdpAddressFamilyProcessor interface {
	MplsLdpAddressFamilyV4Processor
}

type MplsLdpAddressFamilyV4

type MplsLdpAddressFamilyV4 struct {
	nclib.SrChanges `xml:"-"`

	Config *MplsLdpAddressFamilyV4Config `xml:"config"`
}

mpls/signaling-protocols/ldp/address-family/ipv4

func NewMplsLdpAddressFamilyV4

func NewMplsLdpAddressFamilyV4() *MplsLdpAddressFamilyV4

func (*MplsLdpAddressFamilyV4) Put

func (m *MplsLdpAddressFamilyV4) Put(nodes []*ncxml.XPathNode, value string) error

func (*MplsLdpAddressFamilyV4) String

func (m *MplsLdpAddressFamilyV4) String() string

type MplsLdpAddressFamilyV4Config

type MplsLdpAddressFamilyV4Config struct {
	nclib.SrChanges `xml:"-"`

	TransportAddr   net.IP                `xml:"transport-address"`
	SessionHoldTime uint16                `xml:"session-ka-holdtime"`
	LabelPolicy     *MplsLdpV4LabelPolicy `xml:"label-policy"`
}

mpls/signaling-protocols/ldp/address-family/ipv4/config

func NewMplsLdpAddressFamilyV4Config

func NewMplsLdpAddressFamilyV4Config() *MplsLdpAddressFamilyV4Config

func (*MplsLdpAddressFamilyV4Config) Put

func (m *MplsLdpAddressFamilyV4Config) Put(nodes []*ncxml.XPathNode, value string) error

type MplsLdpAddressFamilyV4ConfigProcessor

type MplsLdpAddressFamilyV4ConfigProcessor interface {
	MplsLdpAddressFamilyV4Config(string, *MplsLdpAddressFamilyV4Config) error
}

type MplsLdpAddressFamilyV4Processor

type MplsLdpAddressFamilyV4Processor interface {
	MplsLdpAddressFamilyV4ConfigProcessor
}

type MplsLdpConfig

type MplsLdpConfig struct {
	nclib.SrChanges `xml:"-"`

	LsrId string `xml:"lsr-id"`
}

mpls/signaling-protocols/ldp/global/config

func NewMplsLdpConfig

func NewMplsLdpConfig() *MplsLdpConfig

func (*MplsLdpConfig) Put

func (m *MplsLdpConfig) Put(nodes []*ncxml.XPathNode, value string) error

func (*MplsLdpConfig) String

func (m *MplsLdpConfig) String() string

type MplsLdpConfigProcessor

type MplsLdpConfigProcessor interface {
	MplsLdpConfig(string, *MplsLdpConfig) error
}

type MplsLdpDiscovInterfaces

type MplsLdpDiscovInterfaces struct {
	nclib.SrChanges `xml:"-"`

	Config     *MplsLdpDiscovInterfacesConfig `xml:"config"`
	Interfaces MplsLdpInterfaces              `xml:"interface"`
}

mpls/signaling-protocols/ldp/global/discovery/interfaces

func NewMplsLdpDiscovInterfaces

func NewMplsLdpDiscovInterfaces() *MplsLdpDiscovInterfaces

func (*MplsLdpDiscovInterfaces) Put

func (m *MplsLdpDiscovInterfaces) Put(nodes []*ncxml.XPathNode, value string) error

type MplsLdpDiscovInterfacesConfig

type MplsLdpDiscovInterfacesConfig struct {
	nclib.SrChanges `xml:"-"`

	HelloHoldTime uint16 `xml:"hello-holdtime"`
	HelloInterval uint16 `xml:"hello-interval"`
}

mpls/signaling-protocols/ldp/global/discovery/interfaces/config

func NewMplsLdpDiscovInterfacesConfig

func NewMplsLdpDiscovInterfacesConfig() *MplsLdpDiscovInterfacesConfig

func (*MplsLdpDiscovInterfacesConfig) Put

func (m *MplsLdpDiscovInterfacesConfig) Put(nodes []*ncxml.XPathNode, value string) error

type MplsLdpDiscovInterfacesConfigProcessor

type MplsLdpDiscovInterfacesConfigProcessor interface {
	MplsLdpDiscovInterfacesConfig(string, *MplsLdpDiscovInterfacesConfig) error
}

type MplsLdpDiscovery

type MplsLdpDiscovery struct {
	nclib.SrChanges `xml:"-"`

	Interfaces *MplsLdpDiscovInterfaces `xml:"interfaces"`
}

mpls/signaling-protocols/ldp/global/discovery

func NewMplsLdpDiscovery

func NewMplsLdpDiscovery() *MplsLdpDiscovery

func (*MplsLdpDiscovery) Put

func (m *MplsLdpDiscovery) Put(nodes []*ncxml.XPathNode, value string) error

func (*MplsLdpDiscovery) String

func (m *MplsLdpDiscovery) String() string

type MplsLdpDiscoveryProcessor

type MplsLdpDiscoveryProcessor interface {
	MplsLdpDiscovInterfacesProcessor
}

type MplsLdpEngressExplicitNull

type MplsLdpEngressExplicitNull struct {
	nclib.SrChanges `xml:"-"`

	Enable bool `xml:"enable"`
}

mpls/signaling-protocols/ldp/global/address-families/ipv4/config/label-policy/advertise/egress-explicit-null

func NewMplsLdpEngressExplicitNull

func NewMplsLdpEngressExplicitNull() *MplsLdpEngressExplicitNull

func (*MplsLdpEngressExplicitNull) Put

func (m *MplsLdpEngressExplicitNull) Put(nodes []*ncxml.XPathNode, value string) error

type MplsLdpGlobal

type MplsLdpGlobal struct {
	nclib.SrChanges `xml:"-"`

	Config        *MplsLdpConfig        `xml:"config"`
	AddressFamily *MplsLdpAddressFamily `xml:"address-families"`
	Discovery     *MplsLdpDiscovery     `xml:"discovery"`
}

mpls/signaling-protocols/ldp/global

func NewMplsLdpGlobal

func NewMplsLdpGlobal() *MplsLdpGlobal

func (*MplsLdpGlobal) Put

func (m *MplsLdpGlobal) Put(nodes []*ncxml.XPathNode, value string) error

func (*MplsLdpGlobal) String

func (m *MplsLdpGlobal) String() string

type MplsLdpInterface

type MplsLdpInterface struct {
	nclib.SrChanges `xml:"-"`

	IfaceId  string                  `xml:"interface-id"`
	IfaceRef *InterfaceRef           `xml:"interface-ref"`
	Config   *MplsLdpInterfaceConfig `xml:"config"`
}

mpls/signaling-protocols/ldp/global/discovery/interfaces/interface[id]

func NewMplsLdpInterface

func NewMplsLdpInterface(ifid string) *MplsLdpInterface

func (*MplsLdpInterface) Put

func (m *MplsLdpInterface) Put(nodes []*ncxml.XPathNode, value string) error

func (*MplsLdpInterface) String

func (m *MplsLdpInterface) String() string

type MplsLdpInterfaceConfig

type MplsLdpInterfaceConfig struct {
	*InterfaceRefConfig `xml:"-"`

	IfaceId       string `xml:"interface-id"`
	HelloHoldTime uint16 `xml:"hello-holdtime"`
	HelloInterval uint16 `xml:"hello-interval"`
}

mpls/signaling-protocols/ldp/address-family/ipvX/interfaces/interface[interface-id]/config

func NewMplsLdpInterfaceConfig

func NewMplsLdpInterfaceConfig() *MplsLdpInterfaceConfig

func (*MplsLdpInterfaceConfig) Put

func (m *MplsLdpInterfaceConfig) Put(nodes []*ncxml.XPathNode, value string) error

func (*MplsLdpInterfaceConfig) String

func (m *MplsLdpInterfaceConfig) String() string

type MplsLdpInterfaceConfigProcessor

type MplsLdpInterfaceConfigProcessor interface {
	MplsLdpInterfaceConfig(string, string, *MplsLdpInterfaceConfig) error
}

type MplsLdpInterfaceProcessor

type MplsLdpInterfaceProcessor interface {
	MplsLdpInterfaceRefProcessor
	MplsLdpInterfaceConfigProcessor
	// contains filtered or unexported methods
}

type MplsLdpInterfaceRefProcessor

type MplsLdpInterfaceRefProcessor interface {
	MplsLdpInterfaceRefConfig(string, string, *InterfaceRefConfig) error
}

mpls/signaling-protocols/ldp/address-family/ipvX/interfaces/interface[interface-id]/interface-ref

type MplsLdpInterfaces

type MplsLdpInterfaces map[string]*MplsLdpInterface

mpls/signaling-protocols/ldp/global/discovery/interfaces/interface*

func NewMplsLdpInterfaces

func NewMplsLdpInterfaces() MplsLdpInterfaces

func (MplsLdpInterfaces) MarshalXML

func (i MplsLdpInterfaces) MarshalXML(e *xml.Encoder, start xml.StartElement) error

func (MplsLdpInterfaces) Put

func (m MplsLdpInterfaces) Put(nodes []*ncxml.XPathNode, value string) error

type MplsLdpProcessor

type MplsLdpProcessor interface {
	MplsLdpGlobalProcessor
}

type MplsLdpV4Advertise

type MplsLdpV4Advertise struct {
	nclib.SrChanges `xml:"-"`

	EngressExplicitNull *MplsLdpEngressExplicitNull `xml:"egress-explicit-null"`
}

mpls/signaling-protocols/ldp/global/address-families/ipv4/config/label-policy/advertise

func NewMplsLdpV4Advertise

func NewMplsLdpV4Advertise() *MplsLdpV4Advertise

func (*MplsLdpV4Advertise) Put

func (m *MplsLdpV4Advertise) Put(nodes []*ncxml.XPathNode, value string) error

type MplsLdpV4LabelPolicy

type MplsLdpV4LabelPolicy struct {
	nclib.SrChanges `xml:"-"`

	Advertise *MplsLdpV4Advertise `xml:"advertise"`
}

mpls/signaling-protocols/ldp/global/address-families/ipv4/config/label-policy

func NewMplsLdpV4LabelPolicy

func NewMplsLdpV4LabelPolicy() *MplsLdpV4LabelPolicy

func (*MplsLdpV4LabelPolicy) Put

func (m *MplsLdpV4LabelPolicy) Put(nodes []*ncxml.XPathNode, value string) error

type MplsNullLabelType

type MplsNullLabelType int
const (
	MPLS_NULL_LABEL_TYPE MplsNullLabelType = iota
	MPLS_NULL_LABEL_EXPLICIT
	MPLS_NULL_LABEL_IMPLICIT
)

func ParseMplsNullLabelType

func ParseMplsNullLabelType(s string) (MplsNullLabelType, error)

func (MplsNullLabelType) MarshalXML

func (v MplsNullLabelType) MarshalXML(e *xml.Encoder, start xml.StartElement) error

func (MplsNullLabelType) String

func (v MplsNullLabelType) String() string

type MplsProcessor

type MplsProcessor interface {
	MplsGlobalProcessor
	MplsSigProtocolsProcessor
}

type MplsSigProtocols

type MplsSigProtocols struct {
	nclib.SrChanges `xml:"-"`

	Ldp *MplsLdp `xml:"ldp"`
}

mpls/signaling-protocols

func NewMplsSigProtocols

func NewMplsSigProtocols() *MplsSigProtocols

func (*MplsSigProtocols) Put

func (m *MplsSigProtocols) Put(nodes []*ncxml.XPathNode, value string) error

func (*MplsSigProtocols) String

func (m *MplsSigProtocols) String() string

type MplsSigProtocolsProcessor

type MplsSigProtocolsProcessor interface {
	MplsLdpProcessor
}

type NetworkInstance

type NetworkInstance struct {
	nclib.SrChanges `xml:"-"`

	Name       string                    `xml:"name"`
	Config     *NetworkInstanceConfig    `xml:"config"`
	Loopbacks  NetworkInstanceLoopbacks  `xml:"loopbacks"`
	Interfaces NetworkInstanceInterfaces `xml:"interfaces"`
	Mpls       *Mpls                     `xml:"mpls"`
	Protocols  NetworkInstanceProtocols  `xml:"protocols"`
}

/network-instances/network-instance[name]

func NewNetworkInstance

func NewNetworkInstance(name string) *NetworkInstance

func (*NetworkInstance) Put

func (n *NetworkInstance) Put(nodes []*ncxml.XPathNode, value string) error

func (*NetworkInstance) String

func (n *NetworkInstance) String() string

type NetworkInstanceConfig

type NetworkInstanceConfig struct {
	nclib.SrChanges `xml:"-"`

	Name     string                   `xml:"name"`
	Type     NetworkInstanceType      `xml:"type"`
	Desc     string                   `xml:"description"`
	RouterId *ncnet.RouterId          `xml:"router-id"`
	RD       ncnet.RouteDistinguisher `xml:"route-distinguisher"`
	RT       ncnet.RouteDistinguisher `xml:"route-target"`
}

/network-instances/network-instance[name]/config

func NewNetworkInstanceConfig

func NewNetworkInstanceConfig() *NetworkInstanceConfig

func (*NetworkInstanceConfig) Put

func (c *NetworkInstanceConfig) Put(nodes []*ncxml.XPathNode, value string) error

func (*NetworkInstanceConfig) String

func (c *NetworkInstanceConfig) String() string

type NetworkInstanceConfigProcessor

type NetworkInstanceConfigProcessor interface {
	NetworkInstanceConfig(string, *NetworkInstanceConfig) error
}

type NetworkInstanceInterface

type NetworkInstanceInterface struct {
	nclib.SrChanges `xml:"-"`

	Id     string                          `xml:"id"`
	Config *NetworkInstanceInterfaceConfig `xml:"config"`
}

network-instances/network-instance[name]/interfaces/interface[id]

func NewNetworkInstanceInterface

func NewNetworkInstanceInterface(id string) *NetworkInstanceInterface

func (*NetworkInstanceInterface) Put

func (n *NetworkInstanceInterface) Put(nodes []*ncxml.XPathNode, value string) error

func (*NetworkInstanceInterface) String

func (n *NetworkInstanceInterface) String() string

type NetworkInstanceInterfaceConfig

type NetworkInstanceInterfaceConfig struct {
	nclib.SrChanges `xml:"-"`

	Id           string `xml:"id"`
	Interface    string `xml:"interface"`
	Subinterface uint32 `xml:"subinterface"`
}

network-instances/network-instance[name]/interfaces/interface[id]/config

func NewNetworkInstanceInterfaceConfig

func NewNetworkInstanceInterfaceConfig() *NetworkInstanceInterfaceConfig

func (*NetworkInstanceInterfaceConfig) IFName

func (*NetworkInstanceInterfaceConfig) Put

func (c *NetworkInstanceInterfaceConfig) Put(nodes []*ncxml.XPathNode, value string) error

func (*NetworkInstanceInterfaceConfig) String

type NetworkInstanceInterfaceConfigProcessor

type NetworkInstanceInterfaceConfigProcessor interface {
	NetworkInstanceInterfaceConfig(string, string, *NetworkInstanceInterfaceConfig) error
}

type NetworkInstanceInterfaceProcessor

type NetworkInstanceInterfaceProcessor interface {
	NetworkInstanceInterfaceConfigProcessor
	// contains filtered or unexported methods
}

type NetworkInstanceInterfaces

type NetworkInstanceInterfaces map[string]*NetworkInstanceInterface

network-instances/network-instance[name]/interfaces

func NewNetworkInstanceInterfaces

func NewNetworkInstanceInterfaces() NetworkInstanceInterfaces

func (NetworkInstanceInterfaces) MarshalXML

func (i NetworkInstanceInterfaces) MarshalXML(e *xml.Encoder, start xml.StartElement) error

func (NetworkInstanceInterfaces) Put

func (n NetworkInstanceInterfaces) Put(nodes []*ncxml.XPathNode, value string) error

type NetworkInstanceLoopback

type NetworkInstanceLoopback struct {
	nclib.SrChanges `xml:"-"`

	Id     string                         `xml:"id"`
	Config *NetworkInstanceLoopbackConfig `xml:"config"`
	Addrs  NetworkInstanceLoopbackAddrs   `xml:"addresses"`
}

network-instances/network-instance[name]/loopbacks/loopback[id]

func NewNetworkInstanceLoopback

func NewNetworkInstanceLoopback(id string) *NetworkInstanceLoopback

func (*NetworkInstanceLoopback) Put

func (n *NetworkInstanceLoopback) Put(nodes []*ncxml.XPathNode, value string) error

func (*NetworkInstanceLoopback) String

func (n *NetworkInstanceLoopback) String() string

type NetworkInstanceLoopbackAddr

type NetworkInstanceLoopbackAddr struct {
	nclib.SrChanges `xml:"-"`

	Index  string                             `xml:"index"`
	Config *NetworkInstanceLoopbackAddrConfig `xml:"config"`
}

network-instances/network-instance[name]/loopbacks/loopback[id]/addresses/address[index]

func NewNetworkInstanceLoopbackAddr

func NewNetworkInstanceLoopbackAddr(index string) *NetworkInstanceLoopbackAddr

func (*NetworkInstanceLoopbackAddr) Put

func (n *NetworkInstanceLoopbackAddr) Put(nodes []*ncxml.XPathNode, value string) error

func (*NetworkInstanceLoopbackAddr) String

func (n *NetworkInstanceLoopbackAddr) String() string

type NetworkInstanceLoopbackAddrConfig

type NetworkInstanceLoopbackAddrConfig struct {
	nclib.SrChanges `xml:"-"`

	Index     string `xml:"id"`
	Ip        net.IP `xml:"ip"`
	PrefixLen uint8  `xml:"prefix-length"`
}

network-instances/network-instance[name]/loopbacks/loopback[id]/addresses/address[index]/config

func NewNetworkInstanceLoopbackAddrConfig

func NewNetworkInstanceLoopbackAddrConfig() *NetworkInstanceLoopbackAddrConfig

func (*NetworkInstanceLoopbackAddrConfig) IFAddr

func (*NetworkInstanceLoopbackAddrConfig) Put

func (*NetworkInstanceLoopbackAddrConfig) String

type NetworkInstanceLoopbackAddrConfigProcessor

type NetworkInstanceLoopbackAddrConfigProcessor interface {
	NetworkInstanceLoopbackAddrConfig(string, string, string, *NetworkInstanceLoopbackAddrConfig) error
}

type NetworkInstanceLoopbackAddrProcessor

type NetworkInstanceLoopbackAddrProcessor interface {
	NetworkInstanceLoopbackAddrConfigProcessor
	// contains filtered or unexported methods
}

type NetworkInstanceLoopbackAddrs

type NetworkInstanceLoopbackAddrs map[string]*NetworkInstanceLoopbackAddr

network-instances/network-instance[name]/loopbacks/loopback[id]/addresses

func NewNetworkInstanceLoopbackAddrs

func NewNetworkInstanceLoopbackAddrs() NetworkInstanceLoopbackAddrs

func (NetworkInstanceLoopbackAddrs) MarshalXML

func (NetworkInstanceLoopbackAddrs) Put

func (n NetworkInstanceLoopbackAddrs) Put(nodes []*ncxml.XPathNode, value string) error

type NetworkInstanceLoopbackConfig

type NetworkInstanceLoopbackConfig struct {
	nclib.SrChanges `xml:"-"`

	Id string `xml:"id"`
}

network-instances/network-instance[name]/loopbacks/loopback[id] /config

func NewNetworkInstanceLoopbackConfig

func NewNetworkInstanceLoopbackConfig() *NetworkInstanceLoopbackConfig

func (*NetworkInstanceLoopbackConfig) Put

func (c *NetworkInstanceLoopbackConfig) Put(nodes []*ncxml.XPathNode, value string) error

func (*NetworkInstanceLoopbackConfig) String

type NetworkInstanceLoopbackConfigProcessor

type NetworkInstanceLoopbackConfigProcessor interface {
	NetworkInstanceLoopbackConfig(string, string, *NetworkInstanceLoopbackConfig) error
}

type NetworkInstanceLoopbackProcessor

type NetworkInstanceLoopbackProcessor interface {
	NetworkInstanceLoopbackConfigProcessor
	NetworkInstanceLoopbackAddrProcessor
	// contains filtered or unexported methods
}

type NetworkInstanceLoopbacks

type NetworkInstanceLoopbacks map[string]*NetworkInstanceLoopback

network-instances/network-instance[name]/loopbacks

func NewNetworkInstanceLoopbacks

func NewNetworkInstanceLoopbacks() NetworkInstanceLoopbacks

func (NetworkInstanceLoopbacks) MarshalXML

func (i NetworkInstanceLoopbacks) MarshalXML(e *xml.Encoder, start xml.StartElement) error

func (NetworkInstanceLoopbacks) Put

func (n NetworkInstanceLoopbacks) Put(nodes []*ncxml.XPathNode, value string) error

type NetworkInstanceProtocol

type NetworkInstanceProtocol struct {
	nclib.SrChanges `xml:"-"`

	// Key          *NetworkInstanceProtocolKey
	Ident        InstallProtocolType            `xml:"identifier"`
	Name         string                         `xml:"name"`
	Config       *NetworkInstanceProtocolConfig `xml:"config"`
	StaticRoutes StaticRoutes                   `xml:"-"`
	Ospfv2       *Ospfv2                        `xml:"-"`
	Ospfv3       *Ospfv3                        `xml:"-"`
	Bgp          *Bgp                           `xml:"-"`
}

func (*NetworkInstanceProtocol) Put

func (p *NetworkInstanceProtocol) Put(nodes []*ncxml.XPathNode, value string) error

type NetworkInstanceProtocolConfig

type NetworkInstanceProtocolConfig struct {
	nclib.SrChanges `xml:"-"`

	Ident InstallProtocolType `xml:"identifier"`
	Name  string              `xml:"name"`
}

func NewNetworkInstanceProtocolConfig

func NewNetworkInstanceProtocolConfig() *NetworkInstanceProtocolConfig

func (*NetworkInstanceProtocolConfig) Put

func (c *NetworkInstanceProtocolConfig) Put(nodes []*ncxml.XPathNode, value string) error

type NetworkInstanceProtocolConfigProcessor

type NetworkInstanceProtocolConfigProcessor interface {
	NetworkInstanceProtocolConfig(string, *NetworkInstanceProtocolKey, *NetworkInstanceProtocolConfig) error
}

type NetworkInstanceProtocolKey

type NetworkInstanceProtocolKey struct {
	Ident InstallProtocolType
	Name  string
}

func NewNetworkInstanceProtocolKey

func NewNetworkInstanceProtocolKey(ident InstallProtocolType, name string) *NetworkInstanceProtocolKey

func ParseNetworkInstanceProtocolKey

func ParseNetworkInstanceProtocolKey(ident string, name string) (*NetworkInstanceProtocolKey, error)

func (*NetworkInstanceProtocolKey) String

func (n *NetworkInstanceProtocolKey) String() string

type NetworkInstanceProtocolProcessor

type NetworkInstanceProtocolProcessor interface {
	NetworkInstanceProtocolConfigProcessor
	StaticRouteProcessor
	Ospfv2Processor
	Ospfv3Processor
	BgpProcessor
	// contains filtered or unexported methods
}

type NetworkInstanceProtocols

type NetworkInstanceProtocols map[NetworkInstanceProtocolKey]*NetworkInstanceProtocol

func NewNetworkInstanceProtocols

func NewNetworkInstanceProtocols() NetworkInstanceProtocols

func (NetworkInstanceProtocols) MarshalXML

func (p NetworkInstanceProtocols) MarshalXML(e *xml.Encoder, start xml.StartElement) error

func (NetworkInstanceProtocols) Put

func (p NetworkInstanceProtocols) Put(nodes []*ncxml.XPathNode, value string) error

type NetworkInstanceType

type NetworkInstanceType int

NETWORK_INSTANCE_TYPE

const (
	NETWORK_INSTANCE_TYPE NetworkInstanceType = iota
	NETWORK_INSTANCE_DEFAULT
	NETWORK_INSTANCE_L3VRF
	NETWORK_INSTANCE_L2VSI
	NETWORK_INSTANCE_L2P2P
	NETWORK_INSTANCE_L2L3
)

func ParseNetworkInstanceType

func ParseNetworkInstanceType(s string) (NetworkInstanceType, error)

func (NetworkInstanceType) MarshalXML

func (t NetworkInstanceType) MarshalXML(e *xml.Encoder, start xml.StartElement) error

func (NetworkInstanceType) String

func (t NetworkInstanceType) String() string

type NetworkInstances

type NetworkInstances map[string]*NetworkInstance

/network-instances

func NewNetworkInstances

func NewNetworkInstances() NetworkInstances

func (NetworkInstances) MarshalXML

func (i NetworkInstances) MarshalXML(e *xml.Encoder, start xml.StartElement) error

func (NetworkInstances) Put

func (n NetworkInstances) Put(nodes []*ncxml.XPathNode, value string) error

type OspfNetworkType

type OspfNetworkType int
const (
	OSPF_NETWORK_TYPE OspfNetworkType = iota
	OSPF_POINT_TO_POINT_NETWORK
	OSPF_BROADCAST_NETWORK
	OSPF_NON_BROADCAST_NETWORK
)

func ParseOspfNetworkType

func ParseOspfNetworkType(s string) (OspfNetworkType, error)

func (OspfNetworkType) String

func (v OspfNetworkType) String() string

type Ospfv2

type Ospfv2 struct {
	nclib.SrChanges `xml:"-"`

	Global *Ospfv2Global `xml:"global"`
	Areas  Ospfv2Areas   `xml:"areas"`
}

ospfv2

func NewOspfv2

func NewOspfv2() *Ospfv2

func (*Ospfv2) Put

func (o *Ospfv2) Put(nodes []*ncxml.XPathNode, value string) error

type Ospfv2Area

type Ospfv2Area struct {
	nclib.SrChanges `xml:"-"`

	Ident      string            `xml:"identifier"`
	Config     *Ospfv2AreaConfig `xml:"config"`
	Interfaces Ospfv2Interfaces  `xml:"interfaces"`
}

ospfv2/areas/area[identifier]

func NewOspfv2Area

func NewOspfv2Area(ident string) *Ospfv2Area

func (*Ospfv2Area) Put

func (o *Ospfv2Area) Put(nodes []*ncxml.XPathNode, value string) error

type Ospfv2AreaConfig

type Ospfv2AreaConfig struct {
	nclib.SrChanges `xml:"-"`

	Ident string `xml:"identifier"`
}

ospfv2/areas/area[identifier]/config

func NewOspfv2AreaConfig

func NewOspfv2AreaConfig() *Ospfv2AreaConfig

func (*Ospfv2AreaConfig) Put

func (c *Ospfv2AreaConfig) Put(nodes []*ncxml.XPathNode, value string) error

type Ospfv2AreaConfigProcessor

type Ospfv2AreaConfigProcessor interface {
	Ospfv2AreaConfig(string, *NetworkInstanceProtocolKey, string, *Ospfv2AreaConfig) error
}

type Ospfv2AreaProcessor

type Ospfv2AreaProcessor interface {
	Ospfv2AreaConfigProcessor
	Ospfv2InterfaceProcessor
	// contains filtered or unexported methods
}

type Ospfv2Areas

type Ospfv2Areas map[string]*Ospfv2Area

ospfv2/areas

func NewOspfv2Areas

func NewOspfv2Areas() Ospfv2Areas

func (Ospfv2Areas) MarshalXML

func (o Ospfv2Areas) MarshalXML(e *xml.Encoder, start xml.StartElement) error

func (Ospfv2Areas) Put

func (o Ospfv2Areas) Put(nodes []*ncxml.XPathNode, value string) error

type Ospfv2Global

type Ospfv2Global struct {
	nclib.SrChanges `xml:"-"`

	Config *Ospfv2GlobalConfig `xml:"config"`
}

ospfv2/global

func NewOspfv2Global

func NewOspfv2Global() *Ospfv2Global

func (*Ospfv2Global) Put

func (o *Ospfv2Global) Put(nodes []*ncxml.XPathNode, value string) error

type Ospfv2GlobalConfig

type Ospfv2GlobalConfig struct {
	nclib.SrChanges `xml:"-"`

	RouterId string `xml:"router-id"`
}

ospfv2/global/config

func NewOspfv2GlobalConfig

func NewOspfv2GlobalConfig() *Ospfv2GlobalConfig

func (*Ospfv2GlobalConfig) Put

func (c *Ospfv2GlobalConfig) Put(nodes []*ncxml.XPathNode, value string) error

type Ospfv2GlobalConfigProcessor

type Ospfv2GlobalConfigProcessor interface {
	Ospfv2GlobalConfig(string, *NetworkInstanceProtocolKey, *Ospfv2GlobalConfig) error
}

type Ospfv2GlobalProcessor

type Ospfv2GlobalProcessor interface {
	Ospfv2GlobalConfigProcessor
}

type Ospfv2Interface

type Ospfv2Interface struct {
	nclib.SrChanges `xml:"-"`

	Id           string                 `xml:"id"`
	Config       *Ospfv2InterfaceConfig `xml:"config"`
	InterfaceRef *InterfaceRef          `xml:"interface-ref"`
	Timers       *Ospfv2InterfaceTimers `xml:"timers"`
}

func NewOspfv2Interface

func NewOspfv2Interface(id string) *Ospfv2Interface

func (*Ospfv2Interface) Put

func (o *Ospfv2Interface) Put(nodes []*ncxml.XPathNode, value string) error

type Ospfv2InterfaceConfig

type Ospfv2InterfaceConfig struct {
	nclib.SrChanges `xml:"-"`

	Id          string          `xml:"id"`
	Metric      uint16          `xml:"metric"`
	Passive     bool            `xml:"passive"`
	NetworkType OspfNetworkType `xml:"network-type"`
	Priority    uint8           `xml:"priority"`
}

func NewOspfv2InterfaceConfig

func NewOspfv2InterfaceConfig() *Ospfv2InterfaceConfig

func (*Ospfv2InterfaceConfig) Put

func (c *Ospfv2InterfaceConfig) Put(nodes []*ncxml.XPathNode, value string) error

type Ospfv2InterfaceConfigProcessor

type Ospfv2InterfaceConfigProcessor interface {
	Ospfv2InterfaceConfig(string, *NetworkInstanceProtocolKey, string, string, *Ospfv2InterfaceConfig) error
}

type Ospfv2InterfaceProcessor

type Ospfv2InterfaceProcessor interface {
	Ospfv2InterfaceConfigProcessor
	Ospfv2InterfaceRefProcessor
	Ospfv2InterfaceTimersProcessor
	// contains filtered or unexported methods
}

type Ospfv2InterfaceRefProcessor

type Ospfv2InterfaceRefProcessor interface {
	Ospfv2InterfaceRefConfig(string, *NetworkInstanceProtocolKey, string, string, *InterfaceRefConfig) error
}

type Ospfv2InterfaceTimers

type Ospfv2InterfaceTimers struct {
	nclib.SrChanges `xml:"-"`

	HelloInterval uint32 `xml:"hello-interval"`
	DeadInterval  uint32 `xml:"dead-interval"`
}

func NewOspfv2InterfaceTimers

func NewOspfv2InterfaceTimers() *Ospfv2InterfaceTimers

func (*Ospfv2InterfaceTimers) Put

func (o *Ospfv2InterfaceTimers) Put(nodes []*ncxml.XPathNode, value string) error

type Ospfv2InterfaceTimersProcessor

type Ospfv2InterfaceTimersProcessor interface {
	Ospfv2InterfaceTimers(string, *NetworkInstanceProtocolKey, string, string, *Ospfv2InterfaceTimers) error
}

type Ospfv2Interfaces

type Ospfv2Interfaces map[string]*Ospfv2Interface

func NewOspfv2Interfaces

func NewOspfv2Interfaces() Ospfv2Interfaces

func (Ospfv2Interfaces) MarshalXML

func (p Ospfv2Interfaces) MarshalXML(e *xml.Encoder, start xml.StartElement) error

func (Ospfv2Interfaces) Put

func (p Ospfv2Interfaces) Put(nodes []*ncxml.XPathNode, value string) error

type Ospfv2Processor

type Ospfv2Processor interface {
	Ospfv2GlobalProcessor
	Ospfv2AreaProcessor
	// contains filtered or unexported methods
}

type Ospfv3 added in v0.3.0

type Ospfv3 struct {
	nclib.SrChanges `xml:"-"`

	Global *Ospfv3Global `xml:"global"`
	Areas  Ospfv3Areas   `xml:"areas"`
}

ospfv3

func NewOspfv3 added in v0.3.0

func NewOspfv3() *Ospfv3

func (*Ospfv3) Put added in v0.3.0

func (o *Ospfv3) Put(nodes []*ncxml.XPathNode, value string) error

type Ospfv3Area added in v0.3.0

type Ospfv3Area struct {
	nclib.SrChanges `xml:"-"`

	Ident      string            `xml:"identifier"`
	Config     *Ospfv3AreaConfig `xml:"config"`
	Interfaces Ospfv3Interfaces  `xml:"interfaces"`
	Ranges     Ospfv3AreaRanges  `xml:"ranges"`
}

ospfv3/areas/area[identifier]

func NewOspfv3Area added in v0.3.0

func NewOspfv3Area(ident string) *Ospfv3Area

func (*Ospfv3Area) Put added in v0.3.0

func (o *Ospfv3Area) Put(nodes []*ncxml.XPathNode, value string) error

type Ospfv3AreaConfig added in v0.3.0

type Ospfv3AreaConfig struct {
	nclib.SrChanges `xml:"-"`

	Ident string `xml:"identifier"`
}

ospfv3/areas/area[identifier]/config

func NewOspfv3AreaConfig added in v0.3.0

func NewOspfv3AreaConfig() *Ospfv3AreaConfig

func (*Ospfv3AreaConfig) Put added in v0.3.0

func (c *Ospfv3AreaConfig) Put(nodes []*ncxml.XPathNode, value string) error

type Ospfv3AreaConfigProcessor added in v0.3.0

type Ospfv3AreaConfigProcessor interface {
	Ospfv3AreaConfig(string, *NetworkInstanceProtocolKey, string, *Ospfv3AreaConfig) error
}

type Ospfv3AreaProcessor added in v0.3.0

type Ospfv3AreaProcessor interface {
	Ospfv3AreaConfigProcessor
	Ospfv3InterfaceProcessor
	Ospfv3AreaRangeProcessor
	// contains filtered or unexported methods
}

type Ospfv3AreaRange added in v0.3.0

type Ospfv3AreaRange struct {
	nclib.SrChanges `xml:"-"`

	Ip        string                 `xml:"ip"`
	PrefixLen uint8                  `xml:"prefix-length"`
	Config    *Ospfv3AreaRangeConfig `xml:"config"`
}

func NewOspfv3AreaRange added in v0.3.0

func NewOspfv3AreaRange(key *Ospfv3AreaRangeKey) *Ospfv3AreaRange

func (*Ospfv3AreaRange) Put added in v0.3.0

func (o *Ospfv3AreaRange) Put(nodes []*ncxml.XPathNode, value string) error

type Ospfv3AreaRangeConfig added in v0.3.0

type Ospfv3AreaRangeConfig struct {
	nclib.SrChanges `xml:"-"`

	Ip        net.IP `xml:"ip"`
	PrefixLen uint8  `xml:"prefix-length"`
}

func NewOspfv3AreaRangeConfig added in v0.3.0

func NewOspfv3AreaRangeConfig() *Ospfv3AreaRangeConfig

func (*Ospfv3AreaRangeConfig) IPNet added in v0.3.0

func (o *Ospfv3AreaRangeConfig) IPNet() *net.IPNet

func (*Ospfv3AreaRangeConfig) Put added in v0.3.0

func (o *Ospfv3AreaRangeConfig) Put(nodes []*ncxml.XPathNode, value string) error

func (*Ospfv3AreaRangeConfig) SetIP added in v0.3.0

func (o *Ospfv3AreaRangeConfig) SetIP(ip net.IP)

func (*Ospfv3AreaRangeConfig) SetPLen added in v0.3.0

func (o *Ospfv3AreaRangeConfig) SetPLen(plen uint8)

type Ospfv3AreaRangeConfigProcessor added in v0.3.0

type Ospfv3AreaRangeConfigProcessor interface {
	Ospfv3AreaRangeConfig(string, *NetworkInstanceProtocolKey, string, *Ospfv3AreaRangeKey, *Ospfv3AreaRangeConfig) error
}

type Ospfv3AreaRangeKey added in v0.3.0

type Ospfv3AreaRangeKey struct {
	Ip        string
	PrefixLen uint8
}

func NewOspfv3AreaRangeKey added in v0.3.0

func NewOspfv3AreaRangeKey(ip string, plen uint8) *Ospfv3AreaRangeKey

func ParseOspfv3AreaRangeKey added in v0.3.0

func ParseOspfv3AreaRangeKey(ip, plen string) (*Ospfv3AreaRangeKey, error)

func (*Ospfv3AreaRangeKey) String added in v0.3.0

func (o *Ospfv3AreaRangeKey) String() string

type Ospfv3AreaRangeProcessor added in v0.3.0

type Ospfv3AreaRangeProcessor interface {
	Ospfv3AreaRangeConfigProcessor
	// contains filtered or unexported methods
}

type Ospfv3AreaRanges added in v0.3.0

type Ospfv3AreaRanges map[Ospfv3AreaRangeKey]*Ospfv3AreaRange

ospfv3/areas/area[id]/ranges

func NewOspfv3AreaRanges added in v0.3.0

func NewOspfv3AreaRanges() Ospfv3AreaRanges

func (Ospfv3AreaRanges) MarshalXML added in v0.3.0

func (o Ospfv3AreaRanges) MarshalXML(e *xml.Encoder, start xml.StartElement) error

func (Ospfv3AreaRanges) Put added in v0.3.0

func (o Ospfv3AreaRanges) Put(nodes []*ncxml.XPathNode, value string) error

type Ospfv3Areas added in v0.3.0

type Ospfv3Areas map[string]*Ospfv3Area

ospfv3/areas

func NewOspfv3Areas added in v0.3.0

func NewOspfv3Areas() Ospfv3Areas

func (Ospfv3Areas) MarshalXML added in v0.3.0

func (o Ospfv3Areas) MarshalXML(e *xml.Encoder, start xml.StartElement) error

func (Ospfv3Areas) Put added in v0.3.0

func (o Ospfv3Areas) Put(nodes []*ncxml.XPathNode, value string) error

type Ospfv3Global added in v0.3.0

type Ospfv3Global struct {
	nclib.SrChanges `xml:"-"`

	Config *Ospfv3GlobalConfig `xml:"config"`
}

ospfv3/global

func NewOspfv3Global added in v0.3.0

func NewOspfv3Global() *Ospfv3Global

func (*Ospfv3Global) Put added in v0.3.0

func (o *Ospfv3Global) Put(nodes []*ncxml.XPathNode, value string) error

type Ospfv3GlobalConfig added in v0.3.0

type Ospfv3GlobalConfig struct {
	nclib.SrChanges `xml:"-"`

	RouterId string `xml:"router-id"`
}

ospfv3/global/config

func NewOspfv3GlobalConfig added in v0.3.0

func NewOspfv3GlobalConfig() *Ospfv3GlobalConfig

func (*Ospfv3GlobalConfig) Put added in v0.3.0

func (c *Ospfv3GlobalConfig) Put(nodes []*ncxml.XPathNode, value string) error

type Ospfv3GlobalConfigProcessor added in v0.3.0

type Ospfv3GlobalConfigProcessor interface {
	Ospfv3GlobalConfig(string, *NetworkInstanceProtocolKey, *Ospfv3GlobalConfig) error
}

type Ospfv3GlobalProcessor added in v0.3.0

type Ospfv3GlobalProcessor interface {
	Ospfv3GlobalConfigProcessor
}

type Ospfv3Interface added in v0.3.0

type Ospfv3Interface struct {
	nclib.SrChanges `xml:"-"`

	Id           string                 `xml:"id"`
	Config       *Ospfv3InterfaceConfig `xml:"config"`
	InterfaceRef *InterfaceRef          `xml:"interface-ref"`
	Timers       *Ospfv3InterfaceTimers `xml:"timers"`
}

func NewOspfv3Interface added in v0.3.0

func NewOspfv3Interface(id string) *Ospfv3Interface

func (*Ospfv3Interface) Put added in v0.3.0

func (o *Ospfv3Interface) Put(nodes []*ncxml.XPathNode, value string) error

type Ospfv3InterfaceConfig added in v0.3.0

type Ospfv3InterfaceConfig struct {
	nclib.SrChanges `xml:"-"`

	Id          string          `xml:"id"`
	Metric      uint16          `xml:"metric"`
	Passive     bool            `xml:"passive"`
	NetworkType OspfNetworkType `xml:"network-type"`
	Priority    uint8           `xml:"priority"`
}

func NewOspfv3InterfaceConfig added in v0.3.0

func NewOspfv3InterfaceConfig() *Ospfv3InterfaceConfig

func (*Ospfv3InterfaceConfig) Put added in v0.3.0

func (c *Ospfv3InterfaceConfig) Put(nodes []*ncxml.XPathNode, value string) error

type Ospfv3InterfaceConfigProcessor added in v0.3.0

type Ospfv3InterfaceConfigProcessor interface {
	Ospfv3InterfaceConfig(string, *NetworkInstanceProtocolKey, string, string, *Ospfv3InterfaceConfig) error
}

type Ospfv3InterfaceProcessor added in v0.3.0

type Ospfv3InterfaceProcessor interface {
	Ospfv3InterfaceConfigProcessor
	Ospfv3InterfaceRefProcessor
	Ospfv3InterfaceTimersProcessor
	// contains filtered or unexported methods
}

type Ospfv3InterfaceRefProcessor added in v0.3.0

type Ospfv3InterfaceRefProcessor interface {
	Ospfv3InterfaceRefConfig(string, *NetworkInstanceProtocolKey, string, string, *InterfaceRefConfig) error
}

type Ospfv3InterfaceTimers added in v0.3.0

type Ospfv3InterfaceTimers struct {
	nclib.SrChanges `xml:"-"`

	HelloInterval uint32 `xml:"hello-interval"`
	DeadInterval  uint32 `xml:"dead-interval"`
}

func NewOspfv3InterfaceTimers added in v0.3.0

func NewOspfv3InterfaceTimers() *Ospfv3InterfaceTimers

func (*Ospfv3InterfaceTimers) Put added in v0.3.0

func (o *Ospfv3InterfaceTimers) Put(nodes []*ncxml.XPathNode, value string) error

type Ospfv3InterfaceTimersProcessor added in v0.3.0

type Ospfv3InterfaceTimersProcessor interface {
	Ospfv3InterfaceTimers(string, *NetworkInstanceProtocolKey, string, string, *Ospfv3InterfaceTimers) error
}

type Ospfv3Interfaces added in v0.3.0

type Ospfv3Interfaces map[string]*Ospfv3Interface

func NewOspfv3Interfaces added in v0.3.0

func NewOspfv3Interfaces() Ospfv3Interfaces

func (Ospfv3Interfaces) MarshalXML added in v0.3.0

func (p Ospfv3Interfaces) MarshalXML(e *xml.Encoder, start xml.StartElement) error

func (Ospfv3Interfaces) Put added in v0.3.0

func (p Ospfv3Interfaces) Put(nodes []*ncxml.XPathNode, value string) error

type Ospfv3Processor added in v0.3.0

type Ospfv3Processor interface {
	Ospfv3GlobalProcessor
	Ospfv3AreaProcessor
	// contains filtered or unexported methods
}

type PolicyApply

type PolicyApply struct {
	nclib.SrChanges `xml:"-"`

	Config *PolicyApplyConfig `xml:"config"`
}

apply-policy

func NewPolicyApply

func NewPolicyApply() *PolicyApply

func (*PolicyApply) Put

func (p *PolicyApply) Put(nodes []*ncxml.XPathNode, value string) error

func (*PolicyApply) String

func (p *PolicyApply) String() string

type PolicyApplyConfig

type PolicyApplyConfig struct {
	nclib.SrChanges `xml:"-"`

	ImportPolicy  []string          `xml:"import-policy"`
	ImportDefault PolicyDefaultType `xml:"default-import-policy"`
	ExportPolicy  []string          `xml:"export-policy"`
	ExportDefault PolicyDefaultType `xml:"default-export-policy"`
}

apply-policy/config

func NewPolicyApplyConfig

func NewPolicyApplyConfig() *PolicyApplyConfig

func (*PolicyApplyConfig) Put

func (p *PolicyApplyConfig) Put(nodes []*ncxml.XPathNode, value string) error

func (*PolicyApplyConfig) String

func (p *PolicyApplyConfig) String() string

type PolicyBgpActions

type PolicyBgpActions struct {
	nclib.SrChanges `xml:"-"`

	Config *PolicyBgpActionsConfig `xml:"config"`
}

bgp-policy-actions

func NewPolicyBgpActions

func NewPolicyBgpActions() *PolicyBgpActions

func (*PolicyBgpActions) MarshalXML

func (b *PolicyBgpActions) MarshalXML(e *xml.Encoder, start xml.StartElement) error

func (*PolicyBgpActions) Put

func (b *PolicyBgpActions) Put(nodes []*ncxml.XPathNode, value string) error

func (*PolicyBgpActions) String

func (b *PolicyBgpActions) String() string

type PolicyBgpActionsConfig

type PolicyBgpActionsConfig struct {
	nclib.SrChanges `xml:"-"`

	SetLocalPref uint32         `xml:"set-local-pref"`
	SetNexthop   BgpNexthopType `xml:"set-next-hop"`
}

bgp-policy-actions/config

func NewPolicyBgpActionsConfig

func NewPolicyBgpActionsConfig() *PolicyBgpActionsConfig

func (*PolicyBgpActionsConfig) Put

func (c *PolicyBgpActionsConfig) Put(nodes []*ncxml.XPathNode, value string) error

func (*PolicyBgpActionsConfig) String

func (c *PolicyBgpActionsConfig) String() string

type PolicyBgpActionsConfigProcessor

type PolicyBgpActionsConfigProcessor interface {
	PolicyBgpActionsConfig(string, string, *PolicyBgpActionsConfig) error
}

type PolicyBgpActionsProcessor

type PolicyBgpActionsProcessor interface {
	PolicyBgpActionsConfigProcessor
}

type PolicyDefaultType

type PolicyDefaultType int

default-policy-type

const (
	POLICY_DEFAULT_TYPE PolicyDefaultType = iota
	POLICY_DEFAULT_ACCEPT_ROUTE
	POLICY_DEFAULT_REJECT_ROUTE
)

func ParsePolicyDefaultType

func ParsePolicyDefaultType(s string) (PolicyDefaultType, error)

func (PolicyDefaultType) String

func (v PolicyDefaultType) String() string

type PolicyDefinedSets

type PolicyDefinedSets struct {
	nclib.SrChanges `xml:"-"`

	PrefixSets   PolicyPrefixSets   `xml:"-"`
	NeighborSets PolicyNeighborSets `xml:"-"`
	TagSets      PolicyTagSets      `xml:"-"`
}

routing-policy/defined-sets

func NewPolicyDefinedSets

func NewPolicyDefinedSets() *PolicyDefinedSets

func (*PolicyDefinedSets) Put

func (d *PolicyDefinedSets) Put(nodes []*ncxml.XPathNode, value string) error

func (*PolicyDefinedSets) String

func (d *PolicyDefinedSets) String() string

type PolicyDefinition

type PolicyDefinition struct {
	nclib.SrChanges `xml:"-"`

	Name   string                  `xml:"name"`
	Config *PolicyDefinitionConfig `xml:"config"`
	Stmts  PolicyStatements        `xml:"statements"`
}

routing-policy/policy-definitions/policy-definition[name]

func NewPolicyDefinition

func NewPolicyDefinition(name string) *PolicyDefinition

func (*PolicyDefinition) Put

func (p *PolicyDefinition) Put(nodes []*ncxml.XPathNode, value string) error

func (*PolicyDefinition) String

func (p *PolicyDefinition) String() string

type PolicyDefinitionConfig

type PolicyDefinitionConfig struct {
	nclib.SrChanges `xml:"-"`

	Name string `xml:"name"`
}

routing-policy/policy-definitions/policy-definition[name]/config

func NewPolicyDefinitionConfig

func NewPolicyDefinitionConfig() *PolicyDefinitionConfig

func (*PolicyDefinitionConfig) Put

func (p *PolicyDefinitionConfig) Put(nodes []*ncxml.XPathNode, value string) error

func (*PolicyDefinitionConfig) String

func (c *PolicyDefinitionConfig) String() string

type PolicyDefinitionConfigProcessor

type PolicyDefinitionConfigProcessor interface {
	PolicyDefinitionConfig(string, *PolicyDefinitionConfig) error
}

type PolicyDefinitionProcessor

type PolicyDefinitionProcessor interface {
	PolicyDefinition(string, *PolicyDefinition) error
	PolicyDefinitionConfigProcessor
	PolicyStatementProcessor
}

type PolicyDefinitions

type PolicyDefinitions map[string]*PolicyDefinition

routing-policy/policy-definitions

func NewPolicyDefinitions

func NewPolicyDefinitions() PolicyDefinitions

func (PolicyDefinitions) MarshalXML

func (p PolicyDefinitions) MarshalXML(e *xml.Encoder, start xml.StartElement) error

func (PolicyDefinitions) Put

func (p PolicyDefinitions) Put(nodes []*ncxml.XPathNode, value string) error

type PolicyMatchSetOptionsType

type PolicyMatchSetOptionsType int
const (
	POLICY_MATCH_SET_OPTIONS_TYPE PolicyMatchSetOptionsType = iota
	POLICY_MATCH_SET_OPTIONS_ANY
	POLICY_MATCH_SET_OPTIONS_ALL
	POLICY_MATCH_SET_OPTIONS_INVERT
)

func ParsePolicyMatchSetOptionsType

func ParsePolicyMatchSetOptionsType(s string) (PolicyMatchSetOptionsType, error)

func (PolicyMatchSetOptionsType) String

func (v PolicyMatchSetOptionsType) String() string

type PolicyNeighborSet

type PolicyNeighborSet struct {
	nclib.SrChanges `xml:"-"`

	Name   string                   `xml:"name"`
	Config *PolicyNeighborSetConfig `xml:"config"`
}

routing-policy/defined-sets/neighbor-sets/neighbor-set[name]

func NewPolicyNeighborSet

func NewPolicyNeighborSet(name string) *PolicyNeighborSet

func (*PolicyNeighborSet) Put

func (r *PolicyNeighborSet) Put(nodes []*ncxml.XPathNode, value string) error

func (*PolicyNeighborSet) String

func (r *PolicyNeighborSet) String() string

type PolicyNeighborSetConfig

type PolicyNeighborSetConfig struct {
	nclib.SrChanges `xml:"-"`

	Name  string   `xml:"name"`
	Addrs []net.IP `xml:"address"`
}

routing-policy/defined-sets/neighbor-sets/neighbor-set[name]/config

func NewPolicyNeighborSetConfig

func NewPolicyNeighborSetConfig() *PolicyNeighborSetConfig

func (*PolicyNeighborSetConfig) Put

func (r *PolicyNeighborSetConfig) Put(nodes []*ncxml.XPathNode, value string) error

func (*PolicyNeighborSetConfig) String

func (r *PolicyNeighborSetConfig) String() string

type PolicyNeighborSetConfigProcessor

type PolicyNeighborSetConfigProcessor interface {
	PolicyNeighborSetConfig(string, *PolicyNeighborSetConfig) error
}

type PolicyNeighborSetProcessor

type PolicyNeighborSetProcessor interface {
	PolicyNeighborSet(string, *PolicyNeighborSet) error
	PolicyNeighborSetConfigProcessor
}

type PolicyNeighborSets

type PolicyNeighborSets map[string]*PolicyNeighborSet

routing-policy/defined-sets/neighbor-sets

func NewPolicyNeighborSets

func NewPolicyNeighborSets() PolicyNeighborSets

func (PolicyNeighborSets) MarshalXML

func (p PolicyNeighborSets) MarshalXML(e *xml.Encoder, start xml.StartElement) error

func (PolicyNeighborSets) Put

func (r PolicyNeighborSets) Put(nodes []*ncxml.XPathNode, value string) error

type PolicyPrefixSet

type PolicyPrefixSet struct {
	nclib.SrChanges `xml:"-"`

	Name     string                  `xml:"name"`
	Config   *PolicyPrefixSetConfig  `xml:"config"`
	Prefixes PolicyPrefixSetPrefixes `xnl:"prefixes"`
}

routing-policy/defined-sets/prefix-sets/prefix-set[name]

func NewPolicyPrefixSet

func NewPolicyPrefixSet(name string) *PolicyPrefixSet

func (*PolicyPrefixSet) Put

func (r *PolicyPrefixSet) Put(nodes []*ncxml.XPathNode, value string) error

func (*PolicyPrefixSet) String

func (r *PolicyPrefixSet) String() string

type PolicyPrefixSetConfig

type PolicyPrefixSetConfig struct {
	nclib.SrChanges `xnl:"-"`

	Name string              `xml:"name"`
	Mode PolicyPrefixSetMode `xml:"mode"`
}

routing-policy/defined-sets/prefix-sets/prefix-set[name]/config

func NewPolicyPrefixSetConfig

func NewPolicyPrefixSetConfig() *PolicyPrefixSetConfig

func (*PolicyPrefixSetConfig) Put

func (r *PolicyPrefixSetConfig) Put(nodes []*ncxml.XPathNode, value string) error

func (*PolicyPrefixSetConfig) String

func (r *PolicyPrefixSetConfig) String() string

type PolicyPrefixSetConfigProcessor

type PolicyPrefixSetConfigProcessor interface {
	PolicyPrefixSetConfig(string, *PolicyPrefixSetConfig) error
}

type PolicyPrefixSetMode

type PolicyPrefixSetMode int
const (
	POLICY_PREFIXSET_MODE PolicyPrefixSetMode = iota
	POLICY_PREFIXSET_MODE_IPV4
	POLICY_PREFIXSET_MODE_IPV6
	POLICY_PREFIXSET_MODE_MIXED
)

func ParsePolicyPrefixSetMode

func ParsePolicyPrefixSetMode(s string) (PolicyPrefixSetMode, error)

func (PolicyPrefixSetMode) String

func (v PolicyPrefixSetMode) String() string

type PolicyPrefixSetPrefix

type PolicyPrefixSetPrefix struct {
	nclib.SrChanges `xml:"-"`

	IpPrefix     string                       `xml:"ip-prefix"`
	MaskLenRange string                       `xml:"masklength-range"`
	Config       *PolicyPrefixSetPrefixConfig `xml:"config"`
}

routing-policy/defined-sets/prefix-sets/prefix-set[name]/prefixes/prefix[prefix, range]

func (*PolicyPrefixSetPrefix) Put

func (p *PolicyPrefixSetPrefix) Put(nodes []*ncxml.XPathNode, value string) error

func (*PolicyPrefixSetPrefix) String

func (p *PolicyPrefixSetPrefix) String() string

type PolicyPrefixSetPrefixConfig

type PolicyPrefixSetPrefixConfig struct {
	nclib.SrChanges `xml:"-"`

	IpPrefix     *net.IPNet `xml:"ip-prefix"`
	MaskLenRange string     `xml:"masklength-range"`
}

routing-policy/defined-sets/prefix-sets/prefix-set[name]/prefixes/prefix[prefix, range]/config

func NewPolicyPrefixSetPrefixConfig

func NewPolicyPrefixSetPrefixConfig() *PolicyPrefixSetPrefixConfig

func (*PolicyPrefixSetPrefixConfig) Put

func (p *PolicyPrefixSetPrefixConfig) Put(nodes []*ncxml.XPathNode, value string) error

func (*PolicyPrefixSetPrefixConfig) String

func (p *PolicyPrefixSetPrefixConfig) String() string

type PolicyPrefixSetPrefixConfigProcessor

type PolicyPrefixSetPrefixConfigProcessor interface {
	PolicyPrefixSetPrefixConfig(string, *PolicyPrefixSetPrefixKey, *PolicyPrefixSetPrefixConfig) error
}

type PolicyPrefixSetPrefixKey

type PolicyPrefixSetPrefixKey struct {
	IpPrefix     string
	MaskLenRange string
}

func NewPolicyPrefixSetPrefixKey

func NewPolicyPrefixSetPrefixKey(ipPrefix, maskLenRange string) *PolicyPrefixSetPrefixKey

type PolicyPrefixSetPrefixProcessor

type PolicyPrefixSetPrefixProcessor interface {
	PolicyPrefixSetPrefix(string, *PolicyPrefixSetPrefixKey, *PolicyPrefixSetPrefix) error
	PolicyPrefixSetPrefixConfigProcessor
}

type PolicyPrefixSetPrefixes

type PolicyPrefixSetPrefixes map[PolicyPrefixSetPrefixKey]*PolicyPrefixSetPrefix

routing-policy/defined-sets/prefix-sets/prefix-set[name]/prefixes

func NewPolicyPrefixSetPrefixes

func NewPolicyPrefixSetPrefixes() PolicyPrefixSetPrefixes

func (PolicyPrefixSetPrefixes) MarshalXML

func (p PolicyPrefixSetPrefixes) MarshalXML(e *xml.Encoder, start xml.StartElement) error

func (PolicyPrefixSetPrefixes) Put

func (r PolicyPrefixSetPrefixes) Put(nodes []*ncxml.XPathNode, value string) error

type PolicyPrefixSetProcessor

type PolicyPrefixSetProcessor interface {
	PolicyPrefixSet(string, *PolicyPrefixSet) error
	PolicyPrefixSetConfigProcessor
	PolicyPrefixSetPrefixProcessor
}

type PolicyPrefixSets

type PolicyPrefixSets map[string]*PolicyPrefixSet

routing-policy/defined-sets/prefix-sets

func NewPolicyPrefixSets

func NewPolicyPrefixSets() PolicyPrefixSets

func (PolicyPrefixSets) MarshalXML

func (p PolicyPrefixSets) MarshalXML(e *xml.Encoder, start xml.StartElement) error

func (PolicyPrefixSets) Put

func (r PolicyPrefixSets) Put(nodes []*ncxml.XPathNode, value string) error

type PolicyResultType

type PolicyResultType int
const (
	POLICY_RESULT_TYPE PolicyResultType = iota
	POLICY_RESULT_ACCEPT_ROUTE
	POLICY_RESULT_REJECT_ROUTE
)

func ParsePolicyResultType

func ParsePolicyResultType(s string) (PolicyResultType, error)

func (PolicyResultType) String

func (v PolicyResultType) String() string

type PolicyStatement

type PolicyStatement struct {
	nclib.SrChanges `xml:"-"`

	XMLName xml.Name                `xml:"statement"`
	Name    string                  `xml:"name"`
	Config  *PolicyStatementConfig  `xml:"config"`
	Actions *PolicyStatementActions `xml:"actions"`
}

routing-policy/policy-definitions/policy-definition[name]/statements/statement[name]

func NewPolicyStatement

func NewPolicyStatement(name string) *PolicyStatement

func (*PolicyStatement) Put

func (p *PolicyStatement) Put(nodes []*ncxml.XPathNode, value string) error

func (*PolicyStatement) String

func (p *PolicyStatement) String() string

type PolicyStatementActions

type PolicyStatementActions struct {
	nclib.SrChanges `xml:"-"`

	Config *PolicyStatementActionsConfig `xml:"config"`
	Bgp    *PolicyBgpActions             `xml:"bgp-actions"`
}

routing-policy/policy-definitions/policy-definition[name]/statements/statement[name]/actions

func NewPolicyStatementActions

func NewPolicyStatementActions() *PolicyStatementActions

func (*PolicyStatementActions) Put

func (p *PolicyStatementActions) Put(nodes []*ncxml.XPathNode, value string) error

func (*PolicyStatementActions) String

func (p *PolicyStatementActions) String() string

type PolicyStatementActionsConfig

type PolicyStatementActionsConfig struct {
	nclib.SrChanges `xml:"-"`

	PolicyResult PolicyResultType `xml:"policy-result"`
}

routing-policy/policy-definitions/policy-definition[name]/statements/statement[name]/actions/config

func NewPolicyStatementActionsConfig

func NewPolicyStatementActionsConfig() *PolicyStatementActionsConfig

func (*PolicyStatementActionsConfig) Put

func (p *PolicyStatementActionsConfig) Put(nodes []*ncxml.XPathNode, value string) error

func (*PolicyStatementActionsConfig) String

type PolicyStatementActionsConfigProcessor

type PolicyStatementActionsConfigProcessor interface {
	PolicyStatementActionsConfig(string, string, *PolicyStatementActionsConfig) error
}

type PolicyStatementConfig

type PolicyStatementConfig struct {
	nclib.SrChanges `xml:"-"`

	Name string `xml:"name"`
}

routing-policy/policy-definitions/policy-definition[name]/statements/statement[name]/config

func NewPolicyStatementConfig

func NewPolicyStatementConfig() *PolicyStatementConfig

func (*PolicyStatementConfig) Put

func (p *PolicyStatementConfig) Put(nodes []*ncxml.XPathNode, value string) error

func (*PolicyStatementConfig) String

func (p *PolicyStatementConfig) String() string

type PolicyStatementConfigProcessor

type PolicyStatementConfigProcessor interface {
	PolicyStatementConfig(string, string, *PolicyStatementConfig) error
}

type PolicyStatements

type PolicyStatements map[string]*PolicyStatement

routing-policy/policy-definitions/policy-definition[name]/statements

func NewPolicyStatements

func NewPolicyStatements() PolicyStatements

func (PolicyStatements) MarshalXML

func (p PolicyStatements) MarshalXML(e *xml.Encoder, start xml.StartElement) error

func (PolicyStatements) Put

func (p PolicyStatements) Put(nodes []*ncxml.XPathNode, value string) error

type PolicyTagSet

type PolicyTagSet struct {
	nclib.SrChanges `xml:"-"`

	Name   string              `xml:"name"`
	Config *PolicyTagSetConfig `xml:"config"`
}

routing-policy/defined-sets/tag-sets/tag-set[name]

func NewPolicyTagSet

func NewPolicyTagSet(name string) *PolicyTagSet

func (*PolicyTagSet) Put

func (r *PolicyTagSet) Put(nodes []*ncxml.XPathNode, value string) error

func (*PolicyTagSet) String

func (r *PolicyTagSet) String() string

type PolicyTagSetConfig

type PolicyTagSetConfig struct {
	nclib.SrChanges `xml:"-"`

	Name     string `xml:"name"`
	TagValue uint32 `xml:"tag-value"`
}

routing-policy/defined-sets/tag-sets/tag-set[name]/config

func NewPolicyTagSetConfig

func NewPolicyTagSetConfig() *PolicyTagSetConfig

func (*PolicyTagSetConfig) Put

func (r *PolicyTagSetConfig) Put(nodes []*ncxml.XPathNode, value string) error

func (*PolicyTagSetConfig) String

func (r *PolicyTagSetConfig) String() string

type PolicyTagSetConfigProcessor

type PolicyTagSetConfigProcessor interface {
	PolicyTagSetConfig(string, *PolicyTagSetConfig) error
}

type PolicyTagSetProcessor

type PolicyTagSetProcessor interface {
	PolicyTagSet(string, *PolicyTagSet) error
	PolicyTagSetConfigProcessor
}

type PolicyTagSets

type PolicyTagSets map[string]*PolicyTagSet

routing-policy/defined-sets/tag-sets

func NewPolicyTagSets

func NewPolicyTagSets() PolicyTagSets

func (PolicyTagSets) MarshalXML

func (p PolicyTagSets) MarshalXML(e *xml.Encoder, start xml.StartElement) error

func (PolicyTagSets) Put

func (r PolicyTagSets) Put(nodes []*ncxml.XPathNode, value string) error

type RoutingPolicy

type RoutingPolicy struct {
	nclib.SrChanges `xml:"-"`

	XMLName     xml.Name           `xml:"https://github.com/beluganos/beluganos/yang/routing-policy routing-policy"`
	DefinedSets *PolicyDefinedSets `xml:"defined-sets"`
	Definitions PolicyDefinitions  `xml:"policy-definitions"`
}

routing-policy

func NewRoutingPolicy

func NewRoutingPolicy() *RoutingPolicy

func (*RoutingPolicy) Put

func (p *RoutingPolicy) Put(nodes []*ncxml.XPathNode, value string) error

func (*RoutingPolicy) String

func (r *RoutingPolicy) String() string

type RoutingPolicyProcessor

type RoutingPolicyProcessor interface {
	PolicyDefinedSetsProcessor
	PolicyDefinitionProcessor
}

type SignallingProtocol

type SignallingProtocol int

SIGNALLING_PROTOCOL

const (
	SIGNALLING_PROTOCOL SignallingProtocol = iota
	SIGNALLING_PROTOCOL_LDP
	SIGNALLING_PROTOCOL_BGP_VPLS
	SIGNALLING_PROTOCOL_BGP_EVPN
)

func ParseSignallingProtocol

func ParseSignallingProtocol(s string) (SignallingProtocol, error)

func (SignallingProtocol) MarshalXML

func (t SignallingProtocol) MarshalXML(e *xml.Encoder, start xml.StartElement) error

func (SignallingProtocol) String

func (v SignallingProtocol) String() string

type StaticRoute

type StaticRoute struct {
	nclib.SrChanges `xml:"-"`

	IP        string              `xml:"ip"`
	PrefixLen uint8               `xml:"prefix-length"`
	Config    *StaticRouteConfig  `xml:"config"`
	Nexthops  StaticRouteNexthops `xml:"nexthops"`
}

static-routes/static[ip, prefix-length]

func NewStaticRoute

func NewStaticRoute(key *StaticRouteKey) *StaticRoute

func (*StaticRoute) Put

func (s *StaticRoute) Put(nodes []*ncxml.XPathNode, value string) error

func (*StaticRoute) String

func (s *StaticRoute) String() string

type StaticRouteConfig

type StaticRouteConfig struct {
	nclib.SrChanges `xml:"-"`

	Ip        net.IP `xml:"ip"`
	PrefixLen uint8  `xml:"prefix-length"`
}

static-routes/static/config

func NewStaticRouteConfig

func NewStaticRouteConfig() *StaticRouteConfig

func (*StaticRouteConfig) Put

func (c *StaticRouteConfig) Put(nodes []*ncxml.XPathNode, value string) error

func (*StaticRouteConfig) String

func (c *StaticRouteConfig) String() string

type StaticRouteConfigProcessor

type StaticRouteConfigProcessor interface {
	StaticRouteConfig(string, *NetworkInstanceProtocolKey, *StaticRouteKey, *StaticRouteConfig) error
}

type StaticRouteKey

type StaticRouteKey struct {
	IP        string
	PrefixLen uint8
}

static-route-key

func NewStaticRouteKey

func NewStaticRouteKey(ip string, prefixlen uint8) *StaticRouteKey

func ParseStaticRouteKey

func ParseStaticRouteKey(ip string, prefixlen string) (*StaticRouteKey, error)

func (*StaticRouteKey) String

func (s *StaticRouteKey) String() string

type StaticRouteNexthop

type StaticRouteNexthop struct {
	nclib.SrChanges `xml:"-"`

	Index    string                    `xml:"index"`
	Config   *StaticRouteNexthopConfig `xml:"config"`
	IfaceRef *InterfaceRef             `xml:"interface-ref"`
}

static-routes/static[prefix]/next-hops/next-hop[index]

func NewStaticRouteNexthop

func NewStaticRouteNexthop(index string) *StaticRouteNexthop

func (*StaticRouteNexthop) Put

func (s *StaticRouteNexthop) Put(nodes []*ncxml.XPathNode, value string) error

func (*StaticRouteNexthop) String

func (s *StaticRouteNexthop) String() string

type StaticRouteNexthopConfig

type StaticRouteNexthopConfig struct {
	nclib.SrChanges `xml:"-"`

	Index   string `xml:"index"`
	Nexthop string `xml:"nexthop"`
}

static-routes/static[prefix]/next-hops/next-hop[index]/config

func NewStaticRouteNexthopConfig

func NewStaticRouteNexthopConfig() *StaticRouteNexthopConfig

func (*StaticRouteNexthopConfig) GetNexthop

func (*StaticRouteNexthopConfig) Put

func (c *StaticRouteNexthopConfig) Put(nodes []*ncxml.XPathNode, value string) error

func (*StaticRouteNexthopConfig) String

func (c *StaticRouteNexthopConfig) String() string

type StaticRouteNexthopConfigProcessor

type StaticRouteNexthopConfigProcessor interface {
	StaticRouteNexthopConfig(string, *NetworkInstanceProtocolKey, *StaticRouteKey, string, *StaticRouteNexthopConfig) error
}

type StaticRouteNexthopIfaceRefProcessor

type StaticRouteNexthopIfaceRefProcessor interface {
	StaticRouteNexthopIfaceRefConfig(string, *NetworkInstanceProtocolKey, *StaticRouteKey, string, *InterfaceRefConfig) error
}

type StaticRouteNexthopProcessor

type StaticRouteNexthopProcessor interface {
	StaticRouteNexthopConfigProcessor
	StaticRouteNexthopIfaceRefProcessor
	// contains filtered or unexported methods
}

type StaticRouteNexthops

type StaticRouteNexthops map[string]*StaticRouteNexthop

static-routes/static[prefix]/next-hops

func NewStaticRouteNexthops

func NewStaticRouteNexthops() StaticRouteNexthops

func (StaticRouteNexthops) MarshalXML

func (s StaticRouteNexthops) MarshalXML(e *xml.Encoder, start xml.StartElement) error

func (StaticRouteNexthops) Put

func (s StaticRouteNexthops) Put(nodes []*ncxml.XPathNode, value string) error

type StaticRouteProcessor

type StaticRouteProcessor interface {
	StaticRouteConfigProcessor
	StaticRouteNexthopProcessor
	// contains filtered or unexported methods
}

type StaticRoutes

type StaticRoutes map[StaticRouteKey]*StaticRoute

static-routes

func NewStaticRoutes

func NewStaticRoutes() StaticRoutes

func (StaticRoutes) MarshalXML

func (s StaticRoutes) MarshalXML(e *xml.Encoder, start xml.StartElement) error

func (StaticRoutes) Put

func (s StaticRoutes) Put(nodes []*ncxml.XPathNode, value string) error

type Subinterface

type Subinterface struct {
	nclib.SrChanges `xml:"-"`

	Index  uint32              `xml:"index"`
	Config *SubinterfaceConfig `xml:"config"`
	IPv4   *SubinterfaceIPv4   `xml:"ipv4"`
	IPv6   *SubinterfaceIPv6   `xml:"ipv6"`
}

Subinterface

func NewSubinterface

func NewSubinterface(index uint32) *Subinterface

func (*Subinterface) Put

func (i *Subinterface) Put(nodes []*ncxml.XPathNode, value string) error

func (*Subinterface) SetConfig

func (i *Subinterface) SetConfig(config *SubinterfaceConfig)

func (*Subinterface) SetIPv4

func (i *Subinterface) SetIPv4(ipv4 *SubinterfaceIPv4)

func (*Subinterface) SetIPv6 added in v0.3.0

func (i *Subinterface) SetIPv6(ipv6 *SubinterfaceIPv6)

func (*Subinterface) SetIndex

func (i *Subinterface) SetIndex(index uint32)

func (*Subinterface) String

func (i *Subinterface) String() string

type SubinterfaceConfig

type SubinterfaceConfig struct {
	nclib.SrChanges `xml:"-"`

	Index   uint32 `xml:"index"`
	Enabled bool   `xml:"enabled"`
	Desc    string `xml:"description"`
}

subinterface/config

func NewSubinterfaceConfig

func NewSubinterfaceConfig() *SubinterfaceConfig

func (*SubinterfaceConfig) Put

func (c *SubinterfaceConfig) Put(nodes []*ncxml.XPathNode, value string) error

func (*SubinterfaceConfig) SetDesc

func (c *SubinterfaceConfig) SetDesc(desc string)

func (*SubinterfaceConfig) SetEnabled

func (c *SubinterfaceConfig) SetEnabled(enabled bool)

func (*SubinterfaceConfig) SetIndex

func (c *SubinterfaceConfig) SetIndex(index uint32)

func (*SubinterfaceConfig) String

func (c *SubinterfaceConfig) String() string

type SubinterfaceConfigProcessor

type SubinterfaceConfigProcessor interface {
	SubinterfaceConfig(string, uint32, *SubinterfaceConfig) error
}

type SubinterfaceIPv4

type SubinterfaceIPv4 struct {
	nclib.SrChanges `xml:"-"`

	XMLName   xml.Name                `xml:"https://github.com/beluganos/beluganos/yang/interfaces/ip ipv4"`
	Addresses IPAddresses             `xml:"addresses"`
	Config    *SubinterfaceIPv4Config `xml:"config"`
}

subinterface[index]/ipv4

func NewSubinterfaceIPv4

func NewSubinterfaceIPv4() *SubinterfaceIPv4

func (*SubinterfaceIPv4) Put

func (i *SubinterfaceIPv4) Put(nodes []*ncxml.XPathNode, value string) error

func (*SubinterfaceIPv4) SetAddresses

func (i *SubinterfaceIPv4) SetAddresses(addrs IPAddresses)

func (*SubinterfaceIPv4) SetConfig

func (i *SubinterfaceIPv4) SetConfig(config *SubinterfaceIPv4Config)

func (*SubinterfaceIPv4) String

func (i *SubinterfaceIPv4) String() string

type SubinterfaceIPv4AddrProcessor

type SubinterfaceIPv4AddrProcessor interface {
	SubinterfaceIPv4AddressConfigProcessor
	// contains filtered or unexported methods
}

subinterface[index]/ipv4/addresses/address[ip]

type SubinterfaceIPv4AddressConfigProcessor

type SubinterfaceIPv4AddressConfigProcessor interface {
	SubinterfaceIPv4AddressConfig(string, uint32, string, *IPAddressConfig) error
}

subinterface[index]/ipv4/addresses/address[ip]/config

type SubinterfaceIPv4Config

type SubinterfaceIPv4Config struct {
	nclib.SrChanges `xml:"-"`

	Mtu uint16 `xml:"mtu,omitempty"`
}

subinterface[index]/ipv4/config

func NewSubinterfaceIPv4Config

func NewSubinterfaceIPv4Config() *SubinterfaceIPv4Config

func (*SubinterfaceIPv4Config) Put

func (c *SubinterfaceIPv4Config) Put(nodes []*ncxml.XPathNode, value string) error

func (*SubinterfaceIPv4Config) SetMtu

func (c *SubinterfaceIPv4Config) SetMtu(mtu uint16)

func (*SubinterfaceIPv4Config) String

func (c *SubinterfaceIPv4Config) String() string

type SubinterfaceIPv4ConfigProcessor

type SubinterfaceIPv4ConfigProcessor interface {
	SubinterfaceIPv4Config(string, uint32, *SubinterfaceIPv4Config) error
}

type SubinterfaceIPv6 added in v0.3.0

type SubinterfaceIPv6 struct {
	nclib.SrChanges `xml:"-"`

	XMLName   xml.Name                `xml:"https://github.com/beluganos/beluganos/yang/interfaces/ip ipv6"`
	Addresses IPAddresses             `xml:"addresses"`
	Config    *SubinterfaceIPv6Config `xml:"config"`
}

subinterface[index]/ipv6

func NewSubinterfaceIPv6 added in v0.3.0

func NewSubinterfaceIPv6() *SubinterfaceIPv6

func (*SubinterfaceIPv6) Put added in v0.3.0

func (i *SubinterfaceIPv6) Put(nodes []*ncxml.XPathNode, value string) error

func (*SubinterfaceIPv6) SetAddresses added in v0.3.0

func (i *SubinterfaceIPv6) SetAddresses(addrs IPAddresses)

func (*SubinterfaceIPv6) SetConfig added in v0.3.0

func (i *SubinterfaceIPv6) SetConfig(config *SubinterfaceIPv6Config)

func (*SubinterfaceIPv6) String added in v0.3.0

func (i *SubinterfaceIPv6) String() string

type SubinterfaceIPv6AddrProcessor added in v0.3.0

type SubinterfaceIPv6AddrProcessor interface {
	SubinterfaceIPv6AddressConfigProcessor
	// contains filtered or unexported methods
}

subinterface[index]/ipv6/addresses/address[ip]

type SubinterfaceIPv6AddressConfigProcessor added in v0.3.0

type SubinterfaceIPv6AddressConfigProcessor interface {
	SubinterfaceIPv6AddressConfig(string, uint32, string, *IPAddressConfig) error
}

subinterface[index]/ipv6/addresses/address[ip]/config

type SubinterfaceIPv6Config added in v0.3.0

type SubinterfaceIPv6Config struct {
	nclib.SrChanges `xml:"-"`

	Mtu uint16 `xml:"mtu,omitempty"`
}

subinterface[index]/ipv6/config

func NewSubinterfaceIPv6Config added in v0.3.0

func NewSubinterfaceIPv6Config() *SubinterfaceIPv6Config

func (*SubinterfaceIPv6Config) Put added in v0.3.0

func (c *SubinterfaceIPv6Config) Put(nodes []*ncxml.XPathNode, value string) error

func (*SubinterfaceIPv6Config) SetMtu added in v0.3.0

func (c *SubinterfaceIPv6Config) SetMtu(mtu uint16)

func (*SubinterfaceIPv6Config) String added in v0.3.0

func (c *SubinterfaceIPv6Config) String() string

type SubinterfaceIPv6ConfigProcessor added in v0.3.0

type SubinterfaceIPv6ConfigProcessor interface {
	SubinterfaceIPv6Config(string, uint32, *SubinterfaceIPv6Config) error
}

type SubinterfaceIPv6Processor added in v0.3.0

type SubinterfaceIPv6Processor interface {
	SubinterfaceIPv6AddrProcessor
	SubinterfaceIPv6ConfigProcessor
}

type SubinterfaceProcessor

type SubinterfaceProcessor interface {
	SubinterfaceConfigProcessor
	SubinterfaceIPv4Processor
	SubinterfaceIPv6Processor
	// contains filtered or unexported methods
}

type Subinterfaces

type Subinterfaces map[uint32]*Subinterface

Subinterfaces

func NewSubinterfaces

func NewSubinterfaces() Subinterfaces

func (Subinterfaces) MarshalXML

func (i Subinterfaces) MarshalXML(e *xml.Encoder, start xml.StartElement) error

func (Subinterfaces) Put

func (i Subinterfaces) Put(nodes []*ncxml.XPathNode, value string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL