+ // This was a mistake and now it's an abomination.
+ leaf port-name {
+ type gbp-common:name;
+ description
+ "Port name";
+ } // end the abomination.
+ leaf timestamp {
+ type int64;
+ description
+ "The last timestamp associated with this endpoint record.
+ This will be used for aging data in the registry.";
+ }
+ }
+
+ // L3 Prefix EndPointFields
+ grouping endpoint-l3-prefix-fields {
+ description "An l3 prefix endpoint and its associated metadata";
+ uses l3-prefix-key;
+ leaf tenant {
+ type gbp-common:tenant-id;
+ mandatory true;
+ description
+ "The tenant with which this endpoint is associated";
+ }
+ leaf endpoint-group {
+ type gbp-common:endpoint-group-id;
+ description
+ "The group associated with this endpoint";
+ }
+ leaf-list endpoint-groups {
+ type gbp-common:endpoint-group-id;
+ description
+ "The groups associated with this endpoint";
+ ordered-by user;
+ }
+ leaf-list condition {
+ type gbp-common:condition-name;
+ description
+ "The conditions associated with this endpoint";
+ }
+ list endpoint-l2-gateways {
+ key "l2-context mac-address";
+ uses l2-key;
+ }
+ list endpoint-l3-gateways {
+ key "l3-context ip-address";
+ uses l3-key;
+ }