-
-
Save anonymous/5a59f031d19ad3c734ba to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module address-tracker { | |
yang-version 1; | |
namespace "urn:opendaylight:address-tracker"; | |
prefix address-tracker; | |
import yang-ext { | |
prefix ext; | |
revision-date "2013-07-09"; | |
} | |
import ietf-inet-types { | |
prefix inet; | |
revision-date 2010-09-24; | |
} | |
import ietf-yang-types { | |
prefix yang; | |
revision-date 2010-09-24; | |
} | |
import opendaylight-inventory { | |
prefix inv; | |
revision-date 2013-08-19; | |
} | |
import ethernet-packet { | |
prefix ethernet; | |
revision-date 2014-05-28; | |
} | |
description | |
"Address Tracker Data Model"; | |
revision 2014-06-17 { | |
description | |
"Address Tracker module draft."; | |
} | |
grouping address-node-connector { | |
list addresses { | |
key "first-seen"; | |
leaf mac { | |
type yang:mac-address; | |
description "MAC address"; | |
} | |
leaf ip { | |
type inet:ip-address; | |
description "IPv4 or IPv6 address"; | |
} | |
leaf vlan { | |
type ethernet:vlan-id; | |
description "VLAN id"; | |
} | |
leaf first-seen { | |
type int64; | |
description "Timestamp (number of ms since January 1, 1970, 00:00:00 GMT) of observing this address for the first time"; | |
} | |
leaf last-seen { | |
type int64; | |
description "The most recent timestamp (tnumber of ms since January 1, 1970, 00:00:00 GMT) of observing this address"; | |
} | |
} | |
} | |
augment "/inv:nodes/inv:node/inv:node-connector" { | |
ext:augment-identifier "address-capable-node-connector"; | |
uses address-node-connector; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment