forked from CiscoDevNet/ydk-go
/
if_ip.go
66 lines (53 loc) · 1.96 KB
/
if_ip.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
// Model for managing IP interfaces.
//
// This model reuses most of the IETF YANG model for IP management
// described by RFC 7277. The primary differences are in the
// structure of configuration and state data.
package if_ip
import (
"fmt"
"github.com/CiscoDevNet/ydk-go/ydk"
)
func init() {
ydk.YLogDebug(fmt.Sprintf("Registering top level entities for package if_ip"))
}
// NeighborOrigin represents The origin of a neighbor entry.
type NeighborOrigin string
const (
// None of the following.
NeighborOrigin_OTHER NeighborOrigin = "OTHER"
// Indicates that the mapping has been statically
// configured - for example, using NETCONF or a Command Line
// Interface.
NeighborOrigin_STATIC NeighborOrigin = "STATIC"
// [adapted from RFC 7277]
//
// Indicates that the mapping has been dynamically resolved
// using, e.g., IPv4 ARP or the IPv6 Neighbor Discovery
// protocol.
NeighborOrigin_DYNAMIC NeighborOrigin = "DYNAMIC"
)
// IpAddressOrigin represents The origin of an address.
type IpAddressOrigin string
const (
// None of the following.
IpAddressOrigin_OTHER IpAddressOrigin = "OTHER"
// Indicates that the address has been statically
// configured - for example, using NETCONF or a Command Line
// Interface.
IpAddressOrigin_STATIC IpAddressOrigin = "STATIC"
// Indicates an address that has been assigned to this
// system by a DHCP server.
IpAddressOrigin_DHCP IpAddressOrigin = "DHCP"
// Indicates an address created by IPv6 stateless
// autoconfiguration that embeds a link-layer address in its
// interface identifier.
IpAddressOrigin_LINK_LAYER IpAddressOrigin = "LINK_LAYER"
// [adapted from RFC 7277]
//
// Indicates an address chosen by the system at
// random, e.g., an IPv4 address within 169.254/16, an
// RFC 4941 temporary address, or an RFC 7217 semantically
// opaque address.
IpAddressOrigin_RANDOM IpAddressOrigin = "RANDOM"
)