Add ipaddress to BaseServiceBinding
If we need to add ip address when we are doing bindings, we should add ip address as an attribute to BaseServiceBinding. By adding it to the BaseServiceBinding, we will enforce all bindings to have a consistent name across all services. For example, in ietf-sfc we have both sfDataPlaneLocator and sffDataPlaneLocator which extends BaseServiceBinding.They named their ip address attribute “ip”. For net-l3vpn, they have vpnBinding extends BaseServiceBinding, and it name its ip address attribute “ipaddress”. This inconsistence in naming the ip attribute causes some troubles in auto generating the backend. Change-Id: I9f3f53937ae25e5e1dbfc5939db18d476c137f86
This commit is contained in:
parent
8b721a0531
commit
3fa2a729ac
|
@ -132,6 +132,11 @@ objects:
|
|||
type: uuid
|
||||
required: true
|
||||
description: "Pointer to Service instance"
|
||||
ipaddress:
|
||||
type: string
|
||||
length: 16
|
||||
description: "IP Address of port"
|
||||
format: ipv4
|
||||
policies:
|
||||
create:
|
||||
role: "rule:admin_or_owner"
|
||||
|
|
|
@ -126,11 +126,6 @@ objects:
|
|||
type: string
|
||||
length: 255
|
||||
description: "Name of this data plane locator"
|
||||
ip:
|
||||
type: string
|
||||
format: ipv4
|
||||
length: 16
|
||||
description: "Data plane IP address"
|
||||
l4_port:
|
||||
type: integer
|
||||
format: int32
|
||||
|
@ -154,10 +149,6 @@ objects:
|
|||
plural_name: sffdataplanelocator
|
||||
extends: BaseServiceBinding
|
||||
attributes:
|
||||
ip:
|
||||
type: string
|
||||
format: ipv4
|
||||
length: 16
|
||||
l4_port:
|
||||
type: integer
|
||||
format: int32
|
||||
|
|
|
@ -52,11 +52,6 @@ objects:
|
|||
type: VpnService
|
||||
interface_id: # Override from base object for specific Interface type
|
||||
type: Interface
|
||||
ipaddress:
|
||||
type: string
|
||||
length: 16
|
||||
description: "IP Address of port"
|
||||
format: ipv4
|
||||
subnet_prefix:
|
||||
type: integer
|
||||
description: "Subnet mask"
|
||||
|
|
Loading…
Reference in New Issue