This repository has been archived by the owner on Nov 2, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
ip.go
69 lines (56 loc) · 2.29 KB
/
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
66
67
68
// This module contains a collection of YANG definitions for
// configuring IP implementations.
// Copyright (c) 2014 IETF Trust and the persons identified as
// authors of the code. All rights reserved.
// Redistribution and use in source and binary forms, with or
// without modification, is permitted pursuant to, and subject
// to the license terms contained in, the Simplified BSD License
// set forth in Section 4.c of the IETF Trust's Legal Provisions
// Relating to IETF Documents
// (http://trustee.ietf.org/license-info).
// This version of this YANG module is part of RFC 7277; see
// the RFC itself for full legal notices.
package ip
import (
"fmt"
"github.com/CiscoDevNet/ydk-go/ydk"
)
func init() {
ydk.YLogDebug(fmt.Sprintf("Registering top level entities for package 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"
// 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"
// 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"
)