Structure - nihole/PSEFABRIC GitHub Wiki

Along with Psefbric Management Data Flow Model and Global Logic the Structure is a key concept of PSEFABRIC.

A Structure is a predetermined list of variables that an administrator can assign to PSEFABRIC configuration objects (addresses in our examples). Then it will be used at the Demultiplexer Layer to determine which network equipment should be configured uniquely.

Her is an example of a YANG piece of code which describes the structure elements:

    container structure {
          leaf-list data-centers {
		  type types:dc;
	  }
	  leaf-list equipments {
		  type types:eq;
	  }
	  leaf-list interfaces {
		  type types:interface;
	  }
	  leaf-list zones {
		  type types:zone;
	  }
	  leaf-list vrf {
		  type types:vrf;
	  }
	  list vlans {
		  key vlan-name;
		  leaf vlan-name {
			  type string;
		  }
		  leaf vlan-number {
			  type int16 {
			  range "0..4095";  
			  }
		  }
	  }