Skip to content

Commit

Permalink
M #-: GOCA: Add missing NIC keys (#3077)
Browse files Browse the repository at this point in the history
- Inherited from VNET context: METHOD, GATEWAY, DNS
- Used only with VRouter: FLOATING_IP, FLOATING_ONLY
  • Loading branch information
sk4zuzu authored May 27, 2024
1 parent 4712611 commit 06b4644
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/oca/go/src/goca/schemas/shared/nic.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,11 @@ type NIC struct {
// NICKeys is here to help the user to keep track of XML tags defined in NIC
type NICKeys string

// Some keys are specific to VM some others to VRouter
// For VM values: https://docs.opennebula.io/5.8/operation/references/template.html#network-section
// Some keys are specific to VM some others to VRouter.
// References:
// https://docs.opennebula.io/6.8/management_and_operations/references/template.html#network-section
// https://docs.opennebula.io/6.8/management_and_operations/references/vnet_template.html#contextualization-attributes
// https://docs.opennebula.io/6.8/management_and_operations/network_management/vrouter.html#customization
const (
NICVec string = "NIC"
NICID NICKeys = "NIC_ID"
Expand Down Expand Up @@ -63,6 +66,11 @@ const (
Parent NICKeys = "PARENT"
External NICKeys = "EXTERNAL"
ExternalIP NICKeys = "EXTERNAL_IP"
Method NICKeys = "METHOD"
Gateway NICKeys = "GATEWAY"
DNS NICKeys = "DNS"
FloatingIP NICKeys = "FLOATING_IP"
FloatingOnly NICKeys = "FLOATING_ONLY"
)

// NewNIC returns a structure disk entity to build
Expand Down

0 comments on commit 06b4644

Please sign in to comment.