1 module affinity-topology {
2 namespace "urn:opendaylight:affinity";
5 import ietf-inet-types { prefix inet; }
6 import ietf-yang-types { prefix yang; }
7 import yang-ext { prefix ext; }
9 revision "2013-09-16" {
10 description "Initial revision of affinity model";
13 typedef affinity-group-ref {
14 type instance-identifier;
17 typedef affinity-link-ref {
18 type instance-identifier;
21 grouping affinity-group {
25 list affinity-identifier {
31 description "Mac or Inet address";
34 type yang:mac-address;
40 grouping affinity-link {
44 leaf from-affinity-group {
45 type affinity-group-ref;
47 leaf to-affinity-group {
48 type affinity-group-ref;
55 identity affinity-group-context {
56 description "Identity used to mark affinity-group context";
58 identity affinity-link-context {
59 description "Identity used to mark affinity-link context";
62 container affinity-topology {
65 ext:context-instance "affinity-group-context";
70 ext:context-instance "affinity-link-context";
75 rpc get-affinity-groups {
83 rpc get-affinity-links {
86 rpc get-affinity-group {
89 rpc get-affinity-link {