Neutron/sdnapi

Elements Description
The L3 VPN model contains multiple VPN Instances.

UML Model
]

L3VPN Instance Attributes

POST
POST URI/netl3vpn/l3vpninstances

vpninstance1 full-mesh ipv4uni vpninstance1:port1 20.1.1.1        24         edge-if user1 userpass Node1 Node1:Ethernet0/0/1 ospf 1000        ……    ……

GET
GET URI/netl3vpn/l3vpninstances. No HTTP message body.
 * To get all instances

GET URI/netl3vpn/l3vpninstances/{instancename}. No HTTP message body.
 * To get a single VPN instance

GET URI/netl3vpn/l3vpninstances
 * To get one or more VPN instances at a time

vpninstance1 ……

vpninstance1 full-mesh ipv4uni vpninstance1:port1 20.1.1.1        24         edge-if user1 userpass Node1 Node1:Ethernet0/0/1 ospf 1000        ……    ……
 * Response

PUT
PUT URI/netl3vpn/l3vpninstances

vpninstance1 full-mesh ipv4uni vpninstance1:port1 20.1.1.1        24         edge-if user1 userpass Node1 Node1:Ethernet0/0/1 ospf 1000        ……    ……

DELETE
DELETE URI/netl3vpn/l3vpninstances/{instancename}. No HTTP message body.
 * To delete a single VPN instance

DELETE 	URI/netl3vpn/l3vpninstances
 * To delete one or more instances

vpninstance1 ……

POST
POST URI/netl3vpn/l3vpninstances/{instancename}/acifs

vpninstance1:port1 20.1.1.1    24     edge-if user1 userpass Node1 Node1:Ethernet0/0/1 ospf 1000    ……

GET
GET URI/netl3vpn/l3vpninstances/{instancename}/acifs/{acifid}. No HTTP message body.
 * To get a single access interface

GET URI/netl3vpn/l3vpninstances/{instancename}/acifs
 * To get one or more access interfaces

vpninstance1:port1 ……


 * Response

vpninstance1:port1 20.1.1.1    24     edge-if user1 userpass Node1 Node1:Ethernet0/0/1 ospf 1000    ……

PUT
PUT URI/netl3vpn/l3vpninstances/{instancename}/acifs

vpninstance1:port1 20.1.1.1    24     edge-if user1 userpass Node1 Node1:Ethernet0/0/1 ospf 1000    ……

DELETE
DELETE URI/netl3vpn/l3vpninstances/{instancename}/acifs/{acifid}. No HTTP message body.
 * To delete a single access interface

DELETE URI/netl3vpn/l3vpninstances/{instancename}/acifs
 * To delete one or more access interfaces

vpninstance1:port1 ……

Elements Description
The L2VPN model contains multiple VPN Instances.

L2VPN Instance Attributes

L2VPN PW Attributes

L2VPN PW CX Attributes

L2VPN AC Attributes

POST
POST URI/netL2VPN/vpws/netL2VPNinstances

  vpninstance1 2PE  primary  1.1.1.1 2.2.2.2 1024 1025 2.2.2.2</FPID> <forwardPeerID>1.1.1.1</forwardPeerID> <forwardInLabel>1025</forwardInLabel> <forwardOutLabel>1024</forwardOutLabel> </cx> </pw> <ac> 1.1.1.1</FPID> <Interface> Ethernet0/0/1</Interface> </ac> </L2VPNinstance> <L2VPNinstance> …… </L2VPNinstance> </L2VPNinstances>

GET
GET URI/netL2vpn/vpws/nstL2vpnInstances. No HTTP message body.
 * To get all instances

GET URI/netL2vpn/vpws/nstL2vpnInstances /{instancename}. No HTTP message body.
 * To get a single VPN instance

GET URI/netL2VPN/L2VPNinstances
 * To get one or more VPN instances at a time

<netL2vpnInstances> <netL2vpnInstance> vpninstance1 </netL2vpnInstance> <netL2vpnInstance> …… </netL2vpnInstance> </netL2vpnInstances>


 * Response

<netL2vpnInstances> <netL2vpnInstance> vpninstance1 2PE</instanceType> <instanceOperStatus>up</instanceOperStatus> <pw> primary</pwRole> <pwOperStatus>up</pwOperStatus> <cx> 1.1.1.1</FPID> 2.2.2.2</backwardPeerID> 1024</BackwardInLabel> 1025</BackwardOutLabel> 2.2.2.2</FPID> <forwardPeerID>1.1.1.1</forwardPeerID> <forwardInLabel>1025</forwardInLabel> <forwardOutLabel>1024</forwardOutLabel> </cx> </pw> <ac> 1.1.1.1</FPID> <Interface>Ethernet0/0/1</Interface> </ac> </L2VPNinstance> <L2VPNinstance> …… </L2VPNinstance> </L2VPNinstances>

DELETE
DELETE URI/netL2vpn/vpws/netL2vpnInstances/{instancename} No HTTP message body.
 * To delete a single VPN instance

DELETE 	URI/netL2vpn/vpws/netL2vpnInstances/
 * To delete one or more instances

<netL2vpnInstances> <netL2vpnInstance> <netL2vpnInstance>vpninstance1</netL2vpnInstance> </netL2vpnInstance> <netL2vpnInstance> …… </netL2vpnInstance> </netL2vpnInstances>

POST
POST URI/netL2VPN/vpws/netL2vpnInstances/{instancename}/acs/ac

<netL2vpnInstances> <netL2vpnInstance> vpninstance1 <ac> 1.1.1.1</FPID> <Interface>Ethernet0/0/1</Interface> </ac> <ac> ……     </ac> </netL2vpnInstance> </netL2vpnInstances>

GET
GET URI/netL2VPN/vpws/netL2vpnInstances/{instancename}/acs/ac. No HTTP message body.
 * To get a single access interface

GET URI/netL2VPN/L2VPNinstances/{instancename}/acifs
 * To get one or more access interfaces

vpninstance1:port1 ……


 * Response

vpninstance1:port1 20.1.1.1    24     edge-if user1 userpass Node1 Node1:Ethernet0/0/1 ospf 1000    ……

PUT
PUT URI/netL2VPN/L2VPNinstances/{instancename}/acifs

vpninstance1:port1 20.1.1.1    24     edge-if user1 userpass Node1 Node1:Ethernet0/0/1 ospf 1000    ……

DELETE
DELETE URI/netL2VPN/L2VPNinstances/{instancename}/acifs/{acifid}. No HTTP message body.
 * To delete a single access interface

DELETE URI/netL2VPN/L2VPNinstances/{instancename}/acifs
 * To delete one or more access interfaces

vpninstance1:port1 ……