Documentation ¶
Index ¶
- Constants
- func ProcessBgp(p BgpProcessor, reverse bool, name string, key *NetworkInstanceProtocolKey, ...) error
- func ProcessBgpGlobal(p BgpGlobalProcessor, reverse bool, name string, ...) error
- func ProcessBgpGlobalConfig(p BgpGlobalProcessor, reverse bool, name string, ...) error
- func ProcessBgpNeighbor(p BgpNeighborProcessor, reverse bool, name string, ...) error
- func ProcessBgpNeighborAfiSafi(p BgpNeighborAfiSafiProcessor, reverse bool, name string, ...) error
- func ProcessBgpNeighborAfiSafis(p BgpNeighborAfiSafiProcessor, reverse bool, name string, ...) error
- func ProcessBgpNeighborApplyPolicy(p BgpNeighborApplyPolicyProcessor, reverse bool, name string, ...) error
- func ProcessBgpNeighborConfig(p BgpNeighborConfigProcessor, reverse bool, name string, ...) error
- func ProcessBgpNeighborTimers(p BgpNeighborTimersProcessor, reverse bool, name string, ...) error
- func ProcessBgpNeighborTimersConfig(p BgpNeighborTimersConfigProcessor, reverse bool, name string, ...) error
- func ProcessBgpNeighborTransport(p BgpNeighborTransportProcessor, reverse bool, name string, ...) error
- func ProcessBgpNeighborTransportConfig(p BgpNeighborTransportConfigProcessor, reverse bool, name string, ...) error
- func ProcessBgpNeighbors(p BgpNeighborProcessor, reverse bool, name string, ...) error
- func ProcessBgpZebra(p BgpZebraProcessor, reverse bool, name string, ...) error
- func ProcessBgpZebraConfig(p BgpZebraConfigProcessor, reverse bool, name string, ...) error
- func ProcessInterface(p interfaceProcessor, reverse bool, name string, iface *Interface) error
- func ProcessInterfaceConfig(p InterfaceConfigProcessor, reverse bool, name string, config *InterfaceConfig) error
- func ProcessInterfaceEthernet(p InterfaceEthernetProcessor, reverse bool, name string, ...) error
- func ProcessInterfaceEthernetConfig(p InterfaceEthernetConfigProcessor, reverse bool, name string, ...) error
- func ProcessInterfaces(p InterfaceProcessor, reverse bool, ifaces Interfaces) error
- func ProcessMpls(p MplsProcessor, reverse bool, name string, mpls *Mpls) error
- func ProcessMplsConfig(p MplsConfigProcessor, reverse bool, name string, config *MplsConfig) error
- func ProcessMplsGlobal(p MplsGlobalProcessor, reverse bool, name string, global *MplsGlobal) error
- func ProcessMplsInterfaceAttr(p MplsInterfaceAttrProcessor, reverse bool, name string, ifaceId string, ...) error
- func ProcessMplsInterfaceAttrConfig(p MplsInterfaceAttrConfigProcessor, reverse bool, name string, ifaceId string, ...) error
- func ProcessMplsInterfaceAttrRef(p MplsInterfaceAttrRefProcessor, reverse bool, name string, ifaceId string, ...) error
- func ProcessMplsInterfaceAttrs(p MplsInterfaceAttrProcessor, reverse bool, name string, ...) error
- func ProcessMplsLdp(p MplsLdpProcessor, reverse bool, name string, ldp *MplsLdp) error
- func ProcessMplsLdpAddressFamily(p MplsLdpAddressFamilyProcessor, reverse bool, name string, ...) error
- func ProcessMplsLdpAddressFamilyV4(p MplsLdpAddressFamilyV4Processor, reverse bool, name string, ...) error
- func ProcessMplsLdpAddressFamilyV4Config(p MplsLdpAddressFamilyV4ConfigProcessor, reverse bool, name string, ...) error
- func ProcessMplsLdpConfig(p MplsLdpConfigProcessor, reverse bool, name string, config *MplsLdpConfig) error
- func ProcessMplsLdpDiscovInterfaces(p MplsLdpDiscovInterfacesProcessor, reverse bool, name string, ...) error
- func ProcessMplsLdpDiscovInterfacesConfig(p MplsLdpDiscovInterfacesConfigProcessor, reverse bool, name string, ...) error
- func ProcessMplsLdpDiscovery(p MplsLdpDiscoveryProcessor, reverse bool, name string, disc *MplsLdpDiscovery) error
- func ProcessMplsLdpGlobal(p MplsLdpGlobalProcessor, reverse bool, name string, global *MplsLdpGlobal) error
- func ProcessMplsLdpInterface(p MplsLdpInterfaceProcessor, reverse bool, name string, ifaceId string, ...) error
- func ProcessMplsLdpInterfaceConfig(p MplsLdpInterfaceConfigProcessor, reverse bool, name string, ifaceId string, ...) error
- func ProcessMplsLdpInterfaceRef(p MplsLdpInterfaceRefProcessor, reverse bool, name string, ifaceId string, ...) error
- func ProcessMplsLdpInterfaces(p MplsLdpInterfaceProcessor, reverse bool, name string, ...) error
- func ProcessMplsSigProtocols(p MplsSigProtocolsProcessor, reverse bool, name string, ...) error
- func ProcessNetworkInstance(p NetworkInstanceProcessor, reverse bool, name string, ni *NetworkInstance) error
- func ProcessNetworkInstanceConfig(p NetworkInstanceConfigProcessor, reverse bool, name string, ...) error
- func ProcessNetworkInstanceInterface(p NetworkInstanceInterfaceProcessor, reverse bool, name string, ifaceId string, ...) error
- func ProcessNetworkInstanceInterfaceConfig(p NetworkInstanceInterfaceConfigProcessor, reverse bool, name string, ...) error
- func ProcessNetworkInstanceInterfaces(p NetworkInstanceInterfaceProcessor, reverse bool, name string, ...) error
- func ProcessNetworkInstanceLoopback(p NetworkInstanceLoopbackProcessor, reverse bool, name string, id string, ...) error
- func ProcessNetworkInstanceLoopbackAddr(p NetworkInstanceLoopbackAddrProcessor, reverse bool, name string, id string, ...) error
- func ProcessNetworkInstanceLoopbackAddrConfig(p NetworkInstanceLoopbackAddrConfigProcessor, reverse bool, name string, ...) error
- func ProcessNetworkInstanceLoopbackAddrs(p NetworkInstanceLoopbackAddrProcessor, reverse bool, name string, id string, ...) error
- func ProcessNetworkInstanceLoopbackConfig(p NetworkInstanceLoopbackConfigProcessor, reverse bool, name string, id string, ...) error
- func ProcessNetworkInstanceLoopbacks(p NetworkInstanceLoopbackProcessor, reverse bool, name string, ...) error
- func ProcessNetworkInstanceProtocol(p NetworkInstanceProtocolProcessor, reverse bool, name string, ...) error
- func ProcessNetworkInstanceProtocolConfig(p NetworkInstanceProtocolConfigProcessor, reverse bool, name string, ...) error
- func ProcessNetworkInstanceProtocols(p NetworkInstanceProtocolProcessor, reverse bool, name string, ...) error
- func ProcessNetworkInstances(p NetworkInstanceProcessor, reverse bool, nis NetworkInstances) error
- func ProcessOspfv2(p Ospfv2Processor, reverse bool, name string, key *NetworkInstanceProtocolKey, ...) error
- func ProcessOspfv2Area(p Ospfv2AreaProcessor, reverse bool, name string, ...) error
- func ProcessOspfv2AreaConfig(p Ospfv2AreaConfigProcessor, reverse bool, name string, ...) error
- func ProcessOspfv2Areas(p Ospfv2AreaProcessor, reverse bool, name string, ...) error
- func ProcessOspfv2Global(p Ospfv2GlobalProcessor, reverse bool, name string, ...) error
- func ProcessOspfv2GlobalConfig(p Ospfv2GlobalConfigProcessor, reverse bool, name string, ...) error
- func ProcessOspfv2Interface(p Ospfv2InterfaceProcessor, reverse bool, name string, ...) error
- func ProcessOspfv2InterfaceConfig(p Ospfv2InterfaceConfigProcessor, reverse bool, name string, ...) error
- func ProcessOspfv2InterfaceRef(p Ospfv2InterfaceRefProcessor, reverse bool, name string, ...) error
- func ProcessOspfv2InterfaceTimers(p Ospfv2InterfaceTimersProcessor, reverse bool, name string, ...) error
- func ProcessOspfv2Interfaces(p Ospfv2InterfaceProcessor, reverse bool, name string, ...) error
- func ProcessOspfv3(p Ospfv3Processor, reverse bool, name string, key *NetworkInstanceProtocolKey, ...) error
- func ProcessOspfv3Area(p Ospfv3AreaProcessor, reverse bool, name string, ...) error
- func ProcessOspfv3AreaConfig(p Ospfv3AreaConfigProcessor, reverse bool, name string, ...) error
- func ProcessOspfv3AreaRange(p Ospfv3AreaRangeProcessor, reverse bool, name string, ...) error
- func ProcessOspfv3AreaRangeConfig(p Ospfv3AreaRangeConfigProcessor, reverse bool, name string, ...) error
- func ProcessOspfv3AreaRanges(p Ospfv3AreaRangeProcessor, reverse bool, name string, ...) error
- func ProcessOspfv3Areas(p Ospfv3AreaProcessor, reverse bool, name string, ...) error
- func ProcessOspfv3Global(p Ospfv3GlobalProcessor, reverse bool, name string, ...) error
- func ProcessOspfv3GlobalConfig(p Ospfv3GlobalConfigProcessor, reverse bool, name string, ...) error
- func ProcessOspfv3Interface(p Ospfv3InterfaceProcessor, reverse bool, name string, ...) error
- func ProcessOspfv3InterfaceConfig(p Ospfv3InterfaceConfigProcessor, reverse bool, name string, ...) error
- func ProcessOspfv3InterfaceRef(p Ospfv3InterfaceRefProcessor, reverse bool, name string, ...) error
- func ProcessOspfv3InterfaceTimers(p Ospfv3InterfaceTimersProcessor, reverse bool, name string, ...) error
- func ProcessOspfv3Interfaces(p Ospfv3InterfaceProcessor, reverse bool, name string, ...) error
- func ProcessPolicyBgpActions(p PolicyBgpActionsProcessor, reverse bool, name string, stmtName string, ...) error
- func ProcessPolicyBgpActionsConfig(p PolicyBgpActionsConfigProcessor, reverse bool, name string, stmtName string, ...) error
- func ProcessPolicyDefinedSets(p PolicyDefinedSetsProcessor, reverse bool, polsets *PolicyDefinedSets) error
- func ProcessPolicyDefinition(p PolicyDefinitionProcessor, reverse bool, name string, ...) error
- func ProcessPolicyDefinitionConfig(p PolicyDefinitionConfigProcessor, reverse bool, name string, ...) error
- func ProcessPolicyDefinitions(p PolicyDefinitionProcessor, reverse bool, poldefs PolicyDefinitions) error
- func ProcessPolicyNeighborSet(p PolicyNeighborSetProcessor, reverse bool, name string, ...) error
- func ProcessPolicyNeighborSetConfig(p PolicyNeighborSetConfigProcessor, reverse bool, name string, ...) error
- func ProcessPolicyNeighborSets(p PolicyNeighborSetProcessor, reverse bool, neighs PolicyNeighborSets) error
- func ProcessPolicyPrefixSet(p PolicyPrefixSetProcessor, reverse bool, name string, prefix *PolicyPrefixSet) error
- func ProcessPolicyPrefixSetConfig(p PolicyPrefixSetConfigProcessor, reverse bool, name string, ...) error
- func ProcessPolicyPrefixSetPrefix(p PolicyPrefixSetPrefixProcessor, reverse bool, name string, ...) error
- func ProcessPolicyPrefixSetPrefixConfig(p PolicyPrefixSetPrefixConfigProcessor, reverse bool, name string, ...) error
- func ProcessPolicyPrefixSetPrefixes(p PolicyPrefixSetPrefixProcessor, reverse bool, name string, ...) error
- func ProcessPolicyPrefixSets(p PolicyPrefixSetProcessor, reverse bool, prefixes PolicyPrefixSets) error
- func ProcessPolicyStatement(p PolicyStatementProcessor, reverse bool, name string, stmtName string, ...) error
- func ProcessPolicyStatementActions(p PolicyStatementActionsProcessor, reverse bool, name string, stmtName string, ...) error
- func ProcessPolicyStatementActionsConfig(p PolicyStatementActionsConfigProcessor, reverse bool, name string, ...) error
- func ProcessPolicyStatementConfig(p PolicyStatementConfigProcessor, reverse bool, name string, stmtName string, ...) error
- func ProcessPolicyStatements(p PolicyStatementProcessor, reverse bool, name string, stmts PolicyStatements) error
- func ProcessPolicyTagSet(p PolicyTagSetProcessor, reverse bool, name string, tag *PolicyTagSet) error
- func ProcessPolicyTagSetConfig(p PolicyTagSetConfigProcessor, reverse bool, name string, ...) error
- func ProcessPolicyTagSets(p PolicyTagSetProcessor, reverse bool, tags PolicyTagSets) error
- func ProcessRoutingPolicy(p RoutingPolicyProcessor, reverse bool, rpol *RoutingPolicy) error
- func ProcessStaticRoute(p StaticRouteProcessor, reverse bool, name string, ...) error
- func ProcessStaticRouteConfig(p StaticRouteConfigProcessor, reverse bool, name string, ...) error
- func ProcessStaticRouteNexthop(p StaticRouteNexthopProcessor, reverse bool, name string, ...) error
- func ProcessStaticRouteNexthopConfig(p StaticRouteNexthopConfigProcessor, reverse bool, name string, ...) error
- func ProcessStaticRouteNexthopIfaceRef(p StaticRouteNexthopIfaceRefProcessor, reverse bool, name string, ...) error
- func ProcessStaticRouteNexthops(p StaticRouteNexthopProcessor, reverse bool, name string, ...) error
- func ProcessStaticRoutes(p StaticRouteProcessor, reverse bool, name string, ...) error
- func ProcessSubinterface(p subinterfaceProcessor, reverse bool, name string, index uint32, ...) error
- func ProcessSubinterfaceConfig(p SubinterfaceConfigProcessor, reverse bool, name string, index uint32, ...) error
- func ProcessSubinterfaceIPv4(p SubinterfaceIPv4Processor, reverse bool, name string, index uint32, ...) error
- func ProcessSubinterfaceIPv4Addr(p subinterfaceIPv4AddrProcessor, reverse bool, name string, index uint32, ...) error
- func ProcessSubinterfaceIPv4AddressConfig(p SubinterfaceIPv4AddressConfigProcessor, reverse bool, name string, ...) error
- func ProcessSubinterfaceIPv4Addrs(p SubinterfaceIPv4AddrProcessor, reverse bool, name string, index uint32, ...) error
- func ProcessSubinterfaceIPv4Config(p SubinterfaceIPv4ConfigProcessor, reverse bool, name string, index uint32, ...) error
- func ProcessSubinterfaceIPv6(p SubinterfaceIPv6Processor, reverse bool, name string, index uint32, ...) error
- func ProcessSubinterfaceIPv6Addr(p subinterfaceIPv6AddrProcessor, reverse bool, name string, index uint32, ...) error
- func ProcessSubinterfaceIPv6AddressConfig(p SubinterfaceIPv6AddressConfigProcessor, reverse bool, name string, ...) error
- func ProcessSubinterfaceIPv6Addrs(p SubinterfaceIPv6AddrProcessor, reverse bool, name string, index uint32, ...) error
- func ProcessSubinterfaceIPv6Config(p SubinterfaceIPv6ConfigProcessor, reverse bool, name string, index uint32, ...) error
- func ProcessSubinterfaces(p subinterfaceProcessor, reverse bool, name string, subifaces Subinterfaces) error
- type AddressFamily
- type Bgp
- type BgpAfiSafi
- type BgpAfiSafiConfig
- type BgpAfiSafiType
- type BgpAfiSafis
- type BgpGlobal
- type BgpGlobalConfig
- type BgpGlobalConfigProcessor
- type BgpGlobalProcessor
- type BgpNeighbor
- type BgpNeighborAfiSafiProcessor
- type BgpNeighborApplyPolicyProcessor
- type BgpNeighborConfig
- type BgpNeighborConfigProcessor
- type BgpNeighborProcessor
- type BgpNeighborTimers
- type BgpNeighborTimersConfig
- type BgpNeighborTimersConfigProcessor
- type BgpNeighborTimersProcessor
- type BgpNeighborTransport
- type BgpNeighborTransportConfig
- type BgpNeighborTransportConfigProcessor
- type BgpNeighborTransportProcessor
- type BgpNeighbors
- type BgpNexthopType
- type BgpProcessor
- type BgpZebra
- type BgpZebraConfig
- type BgpZebraConfigProcessor
- type BgpZebraProcessor
- type Encapsulation
- type EndpointType
- type IPAddress
- type IPAddressConfig
- type IPAddresses
- type InstallProtocolType
- type Interface
- func (i *Interface) Put(nodes []*ncxml.XPathNode, value string) error
- func (i *Interface) SetConfig(config *InterfaceConfig)
- func (i *Interface) SetEthernet(ethernet *InterfaceEthernet)
- func (i *Interface) SetName(name string)
- func (i *Interface) SetSubinterfaces(subifs Subinterfaces)
- func (i *Interface) String() string
- type InterfaceConfig
- func (c *InterfaceConfig) Put(nodes []*ncxml.XPathNode, value string) error
- func (c *InterfaceConfig) SetDesc(desc string)
- func (c *InterfaceConfig) SetEnabled(enabled bool)
- func (c *InterfaceConfig) SetMtu(mtu uint16)
- func (c *InterfaceConfig) SetName(name string)
- func (c *InterfaceConfig) SetType(t ncianalib.IANAifType)
- func (c *InterfaceConfig) String() string
- type InterfaceConfigProcessor
- type InterfaceEthernet
- type InterfaceEthernetConfig
- type InterfaceEthernetConfigProcessor
- type InterfaceEthernetProcessor
- type InterfaceProcessor
- type InterfaceRef
- type InterfaceRefConfig
- type Interfaces
- type LabelAllocationMode
- type LocalDefinedNexthop
- type Mpls
- type MplsConfig
- type MplsConfigProcessor
- type MplsGlobal
- type MplsGlobalProcessor
- type MplsInterfaceAttr
- type MplsInterfaceAttrConfig
- type MplsInterfaceAttrConfigProcessor
- type MplsInterfaceAttrProcessor
- type MplsInterfaceAttrRefProcessor
- type MplsInterfaceAttrs
- type MplsLdp
- type MplsLdpAddressFamily
- type MplsLdpAddressFamilyProcessor
- type MplsLdpAddressFamilyV4
- type MplsLdpAddressFamilyV4Config
- type MplsLdpAddressFamilyV4ConfigProcessor
- type MplsLdpAddressFamilyV4Processor
- type MplsLdpConfig
- type MplsLdpConfigProcessor
- type MplsLdpDiscovInterfaces
- type MplsLdpDiscovInterfacesConfig
- type MplsLdpDiscovInterfacesConfigProcessor
- type MplsLdpDiscovInterfacesProcessor
- type MplsLdpDiscovery
- type MplsLdpDiscoveryProcessor
- type MplsLdpEngressExplicitNull
- type MplsLdpGlobal
- type MplsLdpGlobalProcessor
- type MplsLdpInterface
- type MplsLdpInterfaceConfig
- type MplsLdpInterfaceConfigProcessor
- type MplsLdpInterfaceProcessor
- type MplsLdpInterfaceRefProcessor
- type MplsLdpInterfaces
- type MplsLdpProcessor
- type MplsLdpV4Advertise
- type MplsLdpV4LabelPolicy
- type MplsNullLabelType
- type MplsProcessor
- type MplsSigProtocols
- type MplsSigProtocolsProcessor
- type NetworkInstance
- type NetworkInstanceConfig
- type NetworkInstanceConfigProcessor
- type NetworkInstanceInterface
- type NetworkInstanceInterfaceConfig
- type NetworkInstanceInterfaceConfigProcessor
- type NetworkInstanceInterfaceProcessor
- type NetworkInstanceInterfaces
- type NetworkInstanceLoopback
- type NetworkInstanceLoopbackAddr
- type NetworkInstanceLoopbackAddrConfig
- type NetworkInstanceLoopbackAddrConfigProcessor
- type NetworkInstanceLoopbackAddrProcessor
- type NetworkInstanceLoopbackAddrs
- type NetworkInstanceLoopbackConfig
- type NetworkInstanceLoopbackConfigProcessor
- type NetworkInstanceLoopbackProcessor
- type NetworkInstanceLoopbacks
- type NetworkInstanceProcessor
- type NetworkInstanceProtocol
- type NetworkInstanceProtocolConfig
- type NetworkInstanceProtocolConfigProcessor
- type NetworkInstanceProtocolKey
- type NetworkInstanceProtocolProcessor
- type NetworkInstanceProtocols
- type NetworkInstanceType
- type NetworkInstances
- type OspfNetworkType
- type Ospfv2
- type Ospfv2Area
- type Ospfv2AreaConfig
- type Ospfv2AreaConfigProcessor
- type Ospfv2AreaProcessor
- type Ospfv2Areas
- type Ospfv2Global
- type Ospfv2GlobalConfig
- type Ospfv2GlobalConfigProcessor
- type Ospfv2GlobalProcessor
- type Ospfv2Interface
- type Ospfv2InterfaceConfig
- type Ospfv2InterfaceConfigProcessor
- type Ospfv2InterfaceProcessor
- type Ospfv2InterfaceRefProcessor
- type Ospfv2InterfaceTimers
- type Ospfv2InterfaceTimersProcessor
- type Ospfv2Interfaces
- type Ospfv2Processor
- type Ospfv3
- type Ospfv3Area
- type Ospfv3AreaConfig
- type Ospfv3AreaConfigProcessor
- type Ospfv3AreaProcessor
- type Ospfv3AreaRange
- type Ospfv3AreaRangeConfig
- type Ospfv3AreaRangeConfigProcessor
- type Ospfv3AreaRangeKey
- type Ospfv3AreaRangeProcessor
- type Ospfv3AreaRanges
- type Ospfv3Areas
- type Ospfv3Global
- type Ospfv3GlobalConfig
- type Ospfv3GlobalConfigProcessor
- type Ospfv3GlobalProcessor
- type Ospfv3Interface
- type Ospfv3InterfaceConfig
- type Ospfv3InterfaceConfigProcessor
- type Ospfv3InterfaceProcessor
- type Ospfv3InterfaceRefProcessor
- type Ospfv3InterfaceTimers
- type Ospfv3InterfaceTimersProcessor
- type Ospfv3Interfaces
- type Ospfv3Processor
- type PolicyApply
- type PolicyApplyConfig
- type PolicyBgpActions
- type PolicyBgpActionsConfig
- type PolicyBgpActionsConfigProcessor
- type PolicyBgpActionsProcessor
- type PolicyDefaultType
- type PolicyDefinedSets
- type PolicyDefinedSetsProcessor
- type PolicyDefinition
- type PolicyDefinitionConfig
- type PolicyDefinitionConfigProcessor
- type PolicyDefinitionProcessor
- type PolicyDefinitions
- type PolicyMatchSetOptionsType
- type PolicyNeighborSet
- type PolicyNeighborSetConfig
- type PolicyNeighborSetConfigProcessor
- type PolicyNeighborSetProcessor
- type PolicyNeighborSets
- type PolicyPrefixSet
- type PolicyPrefixSetConfig
- type PolicyPrefixSetConfigProcessor
- type PolicyPrefixSetMode
- type PolicyPrefixSetPrefix
- type PolicyPrefixSetPrefixConfig
- type PolicyPrefixSetPrefixConfigProcessor
- type PolicyPrefixSetPrefixKey
- type PolicyPrefixSetPrefixProcessor
- type PolicyPrefixSetPrefixes
- type PolicyPrefixSetProcessor
- type PolicyPrefixSets
- type PolicyResultType
- type PolicyStatement
- type PolicyStatementActions
- type PolicyStatementActionsConfig
- type PolicyStatementActionsConfigProcessor
- type PolicyStatementActionsProcessor
- type PolicyStatementConfig
- type PolicyStatementConfigProcessor
- type PolicyStatementProcessor
- type PolicyStatements
- type PolicyTagSet
- type PolicyTagSetConfig
- type PolicyTagSetConfigProcessor
- type PolicyTagSetProcessor
- type PolicyTagSets
- type RoutingPolicy
- type RoutingPolicyProcessor
- type SignallingProtocol
- type StaticRoute
- type StaticRouteConfig
- type StaticRouteConfigProcessor
- type StaticRouteKey
- type StaticRouteNexthop
- type StaticRouteNexthopConfig
- type StaticRouteNexthopConfigProcessor
- type StaticRouteNexthopIfaceRefProcessor
- type StaticRouteNexthopProcessor
- type StaticRouteNexthops
- type StaticRouteProcessor
- type StaticRoutes
- type Subinterface
- func (i *Subinterface) Put(nodes []*ncxml.XPathNode, value string) error
- func (i *Subinterface) SetConfig(config *SubinterfaceConfig)
- func (i *Subinterface) SetIPv4(ipv4 *SubinterfaceIPv4)
- func (i *Subinterface) SetIPv6(ipv6 *SubinterfaceIPv6)
- func (i *Subinterface) SetIndex(index uint32)
- func (i *Subinterface) String() string
- type SubinterfaceConfig
- type SubinterfaceConfigProcessor
- type SubinterfaceIPv4
- type SubinterfaceIPv4AddrProcessor
- type SubinterfaceIPv4AddressConfigProcessor
- type SubinterfaceIPv4Config
- type SubinterfaceIPv4ConfigProcessor
- type SubinterfaceIPv4Processor
- type SubinterfaceIPv6
- type SubinterfaceIPv6AddrProcessor
- type SubinterfaceIPv6AddressConfigProcessor
- type SubinterfaceIPv6Config
- type SubinterfaceIPv6ConfigProcessor
- type SubinterfaceIPv6Processor
- type SubinterfaceProcessor
- type Subinterfaces
Constants ¶
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" )
const ( BGP_ACTIONS_KEY = "bgp-actions" BGP_ACTIONS_SET_LOCALPREF_KEY = "set-local-pref" BGP_ACTIONS_SET_NEXTHOP_KEY = "set-next-hop" )
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) )
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) )
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" )
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" )
const ( MPLS_KEY = "mpls" MPLS_NULLLABEL_KEY = "null-label" MPLS_IFATTRS_KEY = "interface-attributes" MPLS_SIGPROTOS_KEY = "signaling-protocols" MPLS_LDP_KEY = "ldp" )
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" )
const ( MPLS_TYPES_XMLNS = "http://openconfig.net/yang/mpls-types" MPLS_TYPE_MODULE = "oc-mpls-types" )
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" )
const ( NETWORK_INSTANCE_TYPES_XMLNS = "http://openconfig.net/yang/network-instance-types" NETWORK_INSTANCE_TYPES_MODULE = "oc-ni-types" )
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" )
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" )
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" )
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" )
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" )
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 ProcessBgpNeighborTransportConfig ¶
func ProcessBgpNeighborTransportConfig(p BgpNeighborTransportConfigProcessor, reverse bool, name string, key *NetworkInstanceProtocolKey, addr string, config *BgpNeighborTransportConfig) 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 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 ProcessNetworkInstanceProtocol ¶
func ProcessNetworkInstanceProtocol(p NetworkInstanceProtocolProcessor, reverse bool, name string, key *NetworkInstanceProtocolKey, proto *NetworkInstanceProtocol) error
func ProcessNetworkInstanceProtocolConfig ¶
func ProcessNetworkInstanceProtocolConfig(p NetworkInstanceProtocolConfigProcessor, reverse bool, name string, key *NetworkInstanceProtocolKey, config *NetworkInstanceProtocolConfig) 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 ProcessPolicyPrefixSetPrefixConfig ¶
func ProcessPolicyPrefixSetPrefixConfig(p PolicyPrefixSetPrefixConfigProcessor, reverse bool, name string, key *PolicyPrefixSetPrefixKey, config *PolicyPrefixSetPrefixConfig) 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 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 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
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) 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
type BgpGlobal ¶
type BgpGlobal struct { nclib.SrChanges `xml:"-"` Config *BgpGlobalConfig `xml:"config"` }
func NewBgpGlobal ¶
func NewBgpGlobal() *BgpGlobal
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) 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 BgpNeighborProcessor ¶
type BgpNeighborProcessor interface { BgpNeighborConfigProcessor BgpNeighborTimersProcessor BgpNeighborTransportProcessor BgpNeighborAfiSafiProcessor BgpNeighborApplyPolicyProcessor // contains filtered or unexported methods }
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
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
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 (*IPAddress) SetConfig ¶
func (a *IPAddress) SetConfig(config *IPAddressConfig)
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 ¶
addresses
func NewIPAddresses ¶
func NewIPAddresses() IPAddresses
func (IPAddresses) MarshalXML ¶
func (a IPAddresses) MarshalXML(e *xml.Encoder, start xml.StartElement) 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 (*Interface) SetConfig ¶
func (i *Interface) SetConfig(config *InterfaceConfig)
func (*Interface) SetEthernet ¶
func (i *Interface) SetEthernet(ethernet *InterfaceEthernet)
func (*Interface) SetSubinterfaces ¶
func (i *Interface) SetSubinterfaces(subifs Subinterfaces)
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) 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 ¶
/interfaces
func NewInterfaces ¶
func NewInterfaces() Interfaces
func (Interfaces) MarshalXML ¶
func (i Interfaces) MarshalXML(e *xml.Encoder, start xml.StartElement) 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
type MplsConfig ¶
type MplsConfig struct { nclib.SrChanges `xml:"-"` NullLabel MplsNullLabelType `xml:"null-label"` }
mpls/global/config
func NewMplsConfig ¶
func NewMplsConfig() *MplsConfig
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) 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
type MplsLdp ¶
type MplsLdp struct { nclib.SrChanges `xml:"-"` Global *MplsLdpGlobal `xml:"global"` }
mpls/signaling-protocols/ldp
func NewMplsLdp ¶
func NewMplsLdp() *MplsLdp
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
type MplsLdpAddressFamilyV4ConfigProcessor ¶
type MplsLdpAddressFamilyV4ConfigProcessor interface {
MplsLdpAddressFamilyV4Config(string, *MplsLdpAddressFamilyV4Config) error
}
type MplsLdpAddressFamilyV4Processor ¶
type MplsLdpAddressFamilyV4Processor interface { MplsLdpAddressFamilyV4ConfigProcessor }
type MplsLdpConfig ¶
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
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
type MplsLdpDiscovInterfacesConfigProcessor ¶
type MplsLdpDiscovInterfacesConfigProcessor interface {
MplsLdpDiscovInterfacesConfig(string, *MplsLdpDiscovInterfacesConfig) error
}
type MplsLdpDiscovInterfacesProcessor ¶
type MplsLdpDiscovInterfacesProcessor interface { MplsLdpDiscovInterfacesConfigProcessor MplsLdpInterfaceProcessor }
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 ¶
mpls/signaling-protocols/ldp/global/address-families/ipv4/config/label-policy/advertise/egress-explicit-null
func NewMplsLdpEngressExplicitNull ¶
func NewMplsLdpEngressExplicitNull() *MplsLdpEngressExplicitNull
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 MplsLdpGlobalProcessor ¶
type MplsLdpGlobalProcessor interface { MplsLdpConfigProcessor MplsLdpAddressFamilyProcessor MplsLdpDiscoveryProcessor }
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
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
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
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 ¶
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 (c *NetworkInstanceInterfaceConfig) IFName() string
func (*NetworkInstanceInterfaceConfig) Put ¶
func (c *NetworkInstanceInterfaceConfig) Put(nodes []*ncxml.XPathNode, value string) error
func (*NetworkInstanceInterfaceConfig) String ¶
func (c *NetworkInstanceInterfaceConfig) String() 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
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 (c *NetworkInstanceLoopbackAddrConfig) IFAddr() *ncnet.IFAddr
func (*NetworkInstanceLoopbackAddrConfig) Put ¶
func (c *NetworkInstanceLoopbackAddrConfig) Put(nodes []*ncxml.XPathNode, value string) error
func (*NetworkInstanceLoopbackAddrConfig) String ¶
func (c *NetworkInstanceLoopbackAddrConfig) String() 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 (i NetworkInstanceLoopbackAddrs) MarshalXML(e *xml.Encoder, start xml.StartElement) error
type NetworkInstanceLoopbackConfig ¶
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 ¶
func (c *NetworkInstanceLoopbackConfig) String() 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
type NetworkInstanceProcessor ¶
type NetworkInstanceProcessor interface { NetworkInstanceConfigProcessor NetworkInstanceLoopbackProcessor NetworkInstanceInterfaceProcessor MplsProcessor NetworkInstanceProtocolProcessor // contains filtered or unexported methods }
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 NewNetworkInstanceProtocol ¶
func NewNetworkInstanceProtocol(key *NetworkInstanceProtocolKey) *NetworkInstanceProtocol
type NetworkInstanceProtocolConfig ¶
type NetworkInstanceProtocolConfig struct { nclib.SrChanges `xml:"-"` Ident InstallProtocolType `xml:"identifier"` Name string `xml:"name"` }
func NewNetworkInstanceProtocolConfig ¶
func NewNetworkInstanceProtocolConfig() *NetworkInstanceProtocolConfig
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
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
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
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
type Ospfv2AreaConfig ¶
ospfv2/areas/area[identifier]/config
func NewOspfv2AreaConfig ¶
func NewOspfv2AreaConfig() *Ospfv2AreaConfig
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
type Ospfv2Global ¶
type Ospfv2Global struct { nclib.SrChanges `xml:"-"` Config *Ospfv2GlobalConfig `xml:"config"` }
ospfv2/global
func NewOspfv2Global ¶
func NewOspfv2Global() *Ospfv2Global
type Ospfv2GlobalConfig ¶
ospfv2/global/config
func NewOspfv2GlobalConfig ¶
func NewOspfv2GlobalConfig() *Ospfv2GlobalConfig
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
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
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
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
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
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
type Ospfv3AreaConfig ¶ added in v0.3.0
ospfv3/areas/area[identifier]/config
func NewOspfv3AreaConfig ¶ added in v0.3.0
func NewOspfv3AreaConfig() *Ospfv3AreaConfig
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
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
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
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
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
type Ospfv3GlobalConfig ¶ added in v0.3.0
ospfv3/global/config
func NewOspfv3GlobalConfig ¶ added in v0.3.0
func NewOspfv3GlobalConfig() *Ospfv3GlobalConfig
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
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
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
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
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) 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 PolicyDefinedSetsProcessor ¶
type PolicyDefinedSetsProcessor interface { PolicyPrefixSetProcessor PolicyNeighborSetProcessor PolicyTagSetProcessor }
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 ¶
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
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
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 NewPolicyPrefixSetPrefix ¶
func NewPolicyPrefixSetPrefix(key *PolicyPrefixSetPrefixKey) *PolicyPrefixSetPrefix
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 ¶
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
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
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 ¶
func (c *PolicyStatementActionsConfig) String() string
type PolicyStatementActionsConfigProcessor ¶
type PolicyStatementActionsConfigProcessor interface {
PolicyStatementActionsConfig(string, string, *PolicyStatementActionsConfig) error
}
type PolicyStatementActionsProcessor ¶
type PolicyStatementActionsProcessor interface { PolicyStatementActionsConfigProcessor PolicyBgpActionsProcessor }
type PolicyStatementConfig ¶
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 PolicyStatementProcessor ¶
type PolicyStatementProcessor interface { PolicyStatement(string, string, *PolicyStatement) error PolicyStatementConfigProcessor PolicyStatementActionsProcessor }
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
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) 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
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) 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 ¶
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 (c *StaticRouteNexthopConfig) GetNexthop() (net.IP, LocalDefinedNexthop, error)
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
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
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) 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 ¶
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 SubinterfaceIPv4Processor ¶
type SubinterfaceIPv4Processor interface { SubinterfaceIPv4AddrProcessor SubinterfaceIPv4ConfigProcessor }
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
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
Source Files ¶
- bgp.go
- bgp_afisafi.go
- bgp_global.go
- bgp_neighbor.go
- bgp_policy.go
- bgp_types.go
- bgp_zebra.go
- interface.go
- interface_ethernet.go
- interface_ref.go
- local-routing.go
- local-routing_nexthop.go
- local-routing_types.go
- mpls.go
- mpls_global.go
- mpls_ifattr.go
- mpls_ldp.go
- mpls_ldp_af.go
- mpls_ldp_discovery.go
- mpls_ldp_iface.go
- mpls_sigprotos.go
- mpls_types.go
- network-instance.go
- network-instance_iface.go
- network-instance_lo.go
- network-instance_protos.go
- network-instance_types.go
- oc_types.go
- ospf_types.go
- ospfv2.go
- ospfv2_area.go
- ospfv2_iface.go
- ospfv3.go
- ospfv3_area.go
- ospfv3_iface.go
- ospfv3_range.go
- policy_types.go
- routing-policy.go
- routing-policy_action.go
- routing-policy_apply.go
- routing-policy_definition.go
- routing-policy_defset.go
- routing-policy_neighset.go
- routing-policy_prefix.go
- routing-policy_prefixset.go
- routing-policy_stmt.go
- routing-policy_tagset.go
- routing-policy_types.go
- subinterface.go
- subinterface_address.go
- subinterface_ip.go