SaiSujithReddy

Untitled

Jan 31st, 2016
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.50 KB | None | 0 0
  1. module opendaylight-netmask-fields {
  2. namespace "urn:opendaylight:netmask:fields";
  3. prefix "netmask";
  4.  
  5. import yang-ext {prefix ext; revision-date "2013-07-09";}
  6. import ietf-inet-types {prefix inet; revision-date "2010-09-24";}
  7. import ietf-yang-types {prefix yang; revision-date "2013-07-15";}
  8. import opendaylight-match-types {prefix match; revision-date "2013-10-26";}
  9. import opendaylight-inventory {prefix inv;revision-date "2013-08-19";}
  10.  
  11. revision "2016-1-30" {
  12. description "Initial revision of match types";
  13. }
  14.  
  15. grouping "ipv4-match-netmask-fields" {
  16.  
  17. leaf ipv4-source-address-no-mask {
  18. description "IPv4 source address with no mask .";
  19. type inet:ipv4-address;
  20. }
  21.  
  22. leaf ipv4-destination-address-no-mask {
  23. description "IPv4 destination address with no mask.";
  24. type inet:ipv4-address;
  25. }
  26.  
  27. leaf ipv4-source-netmask {
  28. description "IPv4 source address with no mask .";
  29. type yang:dotted-quad;
  30. }
  31.  
  32. leaf ipv4-destination-netmask {
  33. description "IPv4 destination address with no mask.";
  34. type yang:dotted-quad;
  35. }
  36.  
  37. }
  38.  
  39. augment "/match:match/match:layer-3-match/match:ipv4-match" {
  40. ext:augment-identifier "ipv4-match-netmask-fields-data";
  41. description "Adding Ipv4 netmask fields to accomodate arbitrary subnet mask";
  42. uses ipv4-match-netmask-fields;
  43. }
  44.  
  45. }
Advertisement
Add Comment
Please, Sign In to add comment