Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
30 changed files
with
4,713 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
module arista-eos-types { | ||
yang-version 1; | ||
namespace "http://arista.com/yang/experimental/eos/eos-types"; | ||
prefix eos-types; | ||
|
||
organization | ||
"Arista Networks <http://arista.com/>"; | ||
description | ||
"Common type definitions for Arista YANG models | ||
Copyright (c) 2016 Arista Networks, Inc. All rights reserved."; | ||
|
||
revision 2016-10-14 { | ||
description | ||
"Initial revision"; | ||
} | ||
|
||
typedef float { | ||
type decimal64 { | ||
fraction-digits 5; | ||
} | ||
description | ||
"float"; | ||
} | ||
|
||
typedef double { | ||
type decimal64 { | ||
fraction-digits 5; | ||
} | ||
description | ||
"double"; | ||
} | ||
|
||
typedef Arnet-IntfId { | ||
type string; | ||
description | ||
"Arista Interface ID"; | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
module arista-exp-eos { | ||
yang-version 1; | ||
namespace "http://arista.com/yang/experimental/eos"; | ||
prefix eos-exp; | ||
|
||
organization | ||
"Arista Networks <http://arista.com/>"; | ||
description | ||
"arista/eos containers | ||
Copyright (c) 2016 Arista Networks, Inc. All rights reserved."; | ||
|
||
revision 2016-11-09 { | ||
description | ||
"Initial release"; | ||
} | ||
|
||
container arista { | ||
container eos; | ||
} | ||
} |
63 changes: 63 additions & 0 deletions
63
EOS-4.20.6F/experimental/eos/models/cert/arista-gnoi-cert.yang
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
module arista-gnoi-cert { | ||
namespace "http://arista.com/yang/cert/gnoi-cert"; | ||
prefix arista-gnoi-cert; | ||
|
||
import ietf-yang-types { | ||
prefix yang; | ||
} | ||
|
||
organization | ||
"Arista Networks, Inc."; | ||
contact | ||
"Arista Networks, Inc. | ||
Product Support"; | ||
description | ||
"This module provides reporting for the gnoi.cert service. | ||
Copyright (c) 2018 Arista Networks, Inc. All rights reserved."; | ||
|
||
revision 2018-01-15 { | ||
description | ||
"Initial definition."; | ||
reference "https://github.com/openconfig/gnoi"; | ||
} | ||
|
||
grouping certificate-config { | ||
leaf certificate-id { | ||
type string; | ||
} | ||
} | ||
|
||
grouping certificate-status { | ||
leaf pem-certificate { | ||
description "Current certificate data in PEM format."; | ||
type string; | ||
} | ||
leaf not-before { | ||
type yang:timeticks; | ||
} | ||
leaf not-after { | ||
type yang:timeticks; | ||
} | ||
} | ||
|
||
container certificates { | ||
list certificate { | ||
key "certificate-id"; | ||
|
||
leaf certificate-id { | ||
type leafref { | ||
path "../config/certificate-id"; | ||
} | ||
} | ||
|
||
container config { | ||
uses certificate-config; | ||
} | ||
|
||
container status { | ||
uses certificate-status; | ||
} | ||
} | ||
} | ||
|
||
} |
86 changes: 86 additions & 0 deletions
86
EOS-4.20.6F/experimental/eos/models/igmpsnooping/arista-exp-eos-igmpsnooping.yang
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
module arista-exp-eos-igmpsnooping { | ||
yang-version 1; | ||
namespace "http://arista.com/yang/experimental/igmpsnooping"; | ||
prefix igmpsnooping-exp; | ||
|
||
import arista-eos-types { | ||
prefix eos-types; | ||
} | ||
import arista-exp-eos { | ||
prefix eos-exp; | ||
} | ||
import ietf-inet-types { | ||
prefix inet; | ||
} | ||
|
||
organization | ||
"Arista Networks <http://arista.com/>"; | ||
description | ||
"Models for the IGMP Snooping subsystem of Arista EOS | ||
Copyright (c) 2017 Arista Networks, Inc. All rights reserved."; | ||
revision 2017-10-23 { | ||
description | ||
"Initial revision"; | ||
} | ||
|
||
augment "/eos-exp:arista/eos-exp:eos" { | ||
container bridging { | ||
container igmpsnooping { | ||
container config { | ||
description | ||
"IGMP Snooping configuration"; | ||
uses Bridging-IgmpSnooping-Config; | ||
} | ||
} | ||
} | ||
} | ||
|
||
grouping Bridging-IgmpSnooping-Config { | ||
list vlanConfig { | ||
key "vlanId"; | ||
description | ||
"Per VLAN IGMP Snooping configuration"; | ||
uses Bridging-IgmpSnooping-VlanConfig; | ||
} | ||
} | ||
|
||
grouping Bridging-IgmpSnooping-IpGroup { | ||
description | ||
"IGMP Snooping static IP Group configuration"; | ||
leaf addr { | ||
type inet:ipv4-address; | ||
description | ||
"Multicast Group IP Address"; | ||
} | ||
list intf { | ||
key "index"; | ||
description | ||
"List of interfaces interested in multicast IP Group"; | ||
leaf index { | ||
type eos-types:Arnet-IntfId; | ||
description | ||
"Interface ID"; | ||
} | ||
leaf value { | ||
type boolean; | ||
description | ||
"True if interface ID is in the list"; | ||
} | ||
} | ||
} | ||
|
||
grouping Bridging-IgmpSnooping-VlanConfig { | ||
description | ||
"Contains list of static IGMP Snooping group configurations"; | ||
list ipGroup { | ||
key "addr"; | ||
uses Bridging-IgmpSnooping-IpGroup; | ||
} | ||
leaf vlanId { | ||
type uint16; | ||
description | ||
"VLAN ID"; | ||
} | ||
} | ||
} |
123 changes: 123 additions & 0 deletions
123
EOS-4.20.6F/experimental/eos/models/multicast/arista-exp-eos-multicast.yang
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,123 @@ | ||
module arista-exp-eos-multicast { | ||
yang-version 1; | ||
namespace "http://arista.com/yang/experimental/multicast"; | ||
prefix multicast-exp; | ||
|
||
import arista-eos-types { | ||
prefix eos-types; | ||
} | ||
import arista-exp-eos { | ||
prefix eos-exp; | ||
} | ||
import ietf-inet-types { | ||
prefix inet; | ||
} | ||
|
||
organization | ||
"Arista Networks <http://arista.com/>"; | ||
description | ||
"Models for the static multicast routing subsystem of Arista EOS | ||
Copyright (c) 2017 Arista Networks, Inc. All rights reserved."; | ||
|
||
revision 2017-10-20 { | ||
description | ||
"Initial revision"; | ||
} | ||
|
||
augment "/eos-exp:arista/eos-exp:eos" { | ||
container routing { | ||
container multicast { | ||
container routeconfig { | ||
container static { | ||
description | ||
"IP Static Multicast Routing Config."; | ||
uses McastCommon-StaticMrouteConfigColl; | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
grouping McastCommon-StaticMrouteConfig { | ||
list staticMcastRoute { | ||
key "key-g key-s"; | ||
description | ||
"Static Multicast Route Key."; | ||
leaf key-g { | ||
type inet:ip-prefix; | ||
description | ||
"Multicast Group prefix."; | ||
} | ||
leaf key-s { | ||
type inet:ip-prefix; | ||
description | ||
"Multicast Source Prefix."; | ||
} | ||
leaf iif { | ||
type eos-types:Arnet-IntfId; | ||
description | ||
"iif."; | ||
} | ||
list oifs { | ||
key "index"; | ||
description | ||
"list of oifs."; | ||
leaf index { | ||
type eos-types:Arnet-IntfId; | ||
description | ||
"interface id."; | ||
} | ||
leaf value { | ||
type boolean; | ||
description | ||
"true if interface is in oif list."; | ||
} | ||
} | ||
leaf routePriority { | ||
type uint8; | ||
description | ||
"route priority."; | ||
} | ||
leaf rpaId { | ||
type uint16; | ||
description | ||
"rpa index."; | ||
} | ||
leaf toCpu { | ||
type boolean; | ||
description | ||
"true if flow needs to be sent to cpu."; | ||
} | ||
} | ||
leaf vrfName { | ||
type string; | ||
description | ||
"vrf name."; | ||
} | ||
} | ||
|
||
grouping McastCommon-StaticMrouteConfigColl { | ||
list intfConfig { | ||
key "index"; | ||
description | ||
"list of interfaces on which static multicast routing is enabled."; | ||
leaf index { | ||
type eos-types:Arnet-IntfId; | ||
description | ||
"interface id."; | ||
} | ||
leaf value { | ||
type boolean; | ||
description | ||
"true if static multicast routing is enabled on interface."; | ||
} | ||
} | ||
list vrfConfig { | ||
key "vrfName"; | ||
description | ||
"static multicast routes configured per vrf."; | ||
uses McastCommon-StaticMrouteConfig; | ||
} | ||
} | ||
} |
Oops, something went wrong.