daily pastebin goal
62%
SHARE
TWEET

yang - nemask fields

SaiSujithReddy Jan 29th, 2016 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  module opendaylight-netmask-fields {
  2.      namespace "urn:opendaylight:netmask:fields";
  3.      prefix "netmask";
  4.  
  5.      import ietf-inet-types {prefix inet; revision-date "2010-09-24";}
  6.      import ietf-yang-types {prefix yang; revision-date "2013-07-15";}
  7.      import opendaylight-inventory {prefix inv;revision-date "2013-08-19";}
  8.      import opendaylight-match-types {prefix match; revision-date "2013-10-26"; }
  9.  
  10.  
  11.      revision "2016-01-29" {
  12.          description "Initial revision of netmask fields";
  13.      }
  14.  
  15.     grouping "ipv4-match-netmask-fields" {
  16.         leaf ipv4-source-address {
  17.             description "IPv4 source address without arbitrary subnet mask.";
  18.             type inet:ipv4-address;
  19.         }
  20.  
  21.         leaf ipv4-destination-address {
  22.             description "IPv4 destination address without arbitrary subnet mask.";
  23.             type inet:ipv4-address;
  24.         }
  25.  
  26.         leaf ipv4-source-netmask{
  27.             description "IPv4 source arbitrary subnet mask.";
  28.             type yang:dotted-quad;
  29.         }
  30.  
  31.         leaf ipv4-destination-netmask{
  32.             description "IPv4 destination arbitrary subnet mask.";
  33.             type yang:dotted-quad;
  34.         }
  35.     }
  36.  
  37.     augment "/match:match/match:layer-3-match/match:ipv4-match" {
  38.             ext:augment-identifier "12345";
  39.             description "Adding ip-address with netmask fields into ipv4 match ";
  40.             uses ipv4-match-netmask-fields;
  41.      }
  42.  }
RAW Paste Data
Top