Skip to content

Commit

Permalink
Refactor PI Network (#5814)
Browse files Browse the repository at this point in the history
  • Loading branch information
ismirlia authored Dec 18, 2024
1 parent 768de21 commit f25696d
Show file tree
Hide file tree
Showing 4 changed files with 222 additions and 202 deletions.
120 changes: 67 additions & 53 deletions ibm/service/power/ibm_pi_constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ const (
Arg_DhcpID = "pi_dhcp_id"
Arg_DhcpName = "pi_dhcp_name"
Arg_DhcpSnatEnabled = "pi_dhcp_snat_enabled"
Arg_DNS = "pi_dns"
Arg_DnsServer = "pi_dns_server"
Arg_EndingIPAddress = "pi_ending_ip_address"
Arg_Gateway = "pi_gateway"
Arg_HealthStatus = "pi_health_status"
Arg_Host = "pi_host"
Arg_HostGroupID = "pi_host_group_id"
Expand All @@ -40,6 +43,7 @@ const (
Arg_InstanceID = "pi_instance_id"
Arg_InstanceName = "pi_instance_name"
Arg_IPAddress = "pi_ip_address"
Arg_IPAddressRange = "pi_ipaddress_range"
Arg_Key = "pi_ssh_key"
Arg_KeyName = "pi_key_name"
Arg_KeyPairName = "pi_key_pair_name"
Expand All @@ -48,15 +52,19 @@ const (
Arg_Memory = "pi_memory"
Arg_Name = "pi_name"
Arg_Network = "pi_network"
Arg_NetworkAccessConfig = "pi_network_access_config"
Arg_NetworkAddressGroupID = "pi_network_address_group_id"
Arg_NetworkAddressGroupMemberID = "pi_network_address_group_member_id"
Arg_NetworkID = "pi_network_id"
Arg_NetworkInterfaceID = "pi_network_interface_id"
Arg_NetworkJumbo = "pi_network_jumbo"
Arg_NetworkMTU = "pi_network_mtu"
Arg_NetworkName = "pi_network_name"
Arg_NetworkPeer = "pi_network_peer"
Arg_NetworkSecurityGroupID = "pi_network_security_group_id"
Arg_NetworkSecurityGroupMemberID = "pi_network_security_group_member_id"
Arg_NetworkSecurityGroupRuleID = "pi_network_security_group_rule_id"
Arg_NetworkType = "pi_network_type"
Arg_PinPolicy = "pi_pin_policy"
Arg_PlacementGroupID = "pi_placement_group_id"
Arg_PlacementGroupName = "pi_placement_group_name"
Expand Down Expand Up @@ -91,6 +99,7 @@ const (
Arg_SPPPlacementGroupName = "pi_spp_placement_group_name"
Arg_SPPPlacementGroupPolicy = "pi_spp_placement_group_policy"
Arg_SSHKey = "pi_ssh_key"
Arg_StartingIPAddress = "pi_starting_ip_address"
Arg_StorageConnection = "pi_storage_connection"
Arg_StoragePool = "pi_storage_pool"
Arg_StoragePoolAffinity = "pi_storage_pool_affinity"
Expand Down Expand Up @@ -447,59 +456,64 @@ const (
StockVTL = "stock-vtl"

// Allowed Values
Affinity = "affinity"
All = "all"
Allow = "allow"
AntiAffinity = "anti-affinity"
Attach = "attach"
BYOL = "byol"
Capped = "capped"
Critical = "CRITICAL"
CUSTOM_VIRTUAL_CORES = "custom-virtualcores"
Dedicated = "dedicated"
DefaultNAG = "default-network-address-group"
Deny = "deny"
DeploymentTypeEpic = "EPIC"
DeploymentTypeVMNoStorage = "VMNoStorage"
DestinationUnreach = "destination-unreach"
DHCPVlan = "dhcp-vlan"
Disable = "disable"
Echo = "echo"
EchoReply = "echo-reply"
Enable = "enable"
Hana = "Hana"
Hard = "hard"
Host = "host"
HostGroup = "hostGroup"
ICMP = "icmp"
IPV4_Address = "ipv4-address"
L2 = "L2"
L3BGP = "L3BGP"
L3Static = "L3Static"
MaxVolumeSupport = "maxVolumeSupport"
NAG = "network-address-group"
Netweaver = "Netweaver"
Network_Interface = "network-interface"
None = "none"
NSG = "network-security-group"
OK = "OK"
PER = "power-edge-router"
Prefix = "prefix"
Private = "private"
Public = "public"
PubVlan = "pub-vlan"
SAP = "SAP"
Shared = "shared"
Soft = "soft"
SourceQuench = "source-quench"
Suffix = "suffix"
TCP = "tcp"
TimeExceeded = "time-exceeded"
UDP = "udp"
UserTagType = "user"
Vlan = "vlan"
vSCSI = "vSCSI"
Warning = "WARNING"
Affinity = "affinity"
All = "all"
Allow = "allow"
AntiAffinity = "anti-affinity"
Attach = "attach"
Bidirectional_BGP = "bidirectional-bgp"
Bidirectional_L2Out = "bidirectional-l2out"
Bidirectional_Static_Route = "bidirectional-static-route"
BYOL = "byol"
Capped = "capped"
Critical = "CRITICAL"
CUSTOM_VIRTUAL_CORES = "custom-virtualcores"
Dedicated = "dedicated"
DefaultNAG = "default-network-address-group"
Deny = "deny"
DeploymentTypeEpic = "EPIC"
DeploymentTypeVMNoStorage = "VMNoStorage"
DestinationUnreach = "destination-unreach"
DHCPVlan = "dhcp-vlan"
Disable = "disable"
Echo = "echo"
EchoReply = "echo-reply"
Enable = "enable"
Hana = "Hana"
Hard = "hard"
Host = "host"
HostGroup = "hostGroup"
ICMP = "icmp"
Internal_Only = "internal-only"
IPV4_Address = "ipv4-address"
L2 = "L2"
L3BGP = "L3BGP"
L3Static = "L3Static"
MaxVolumeSupport = "maxVolumeSupport"
NAG = "network-address-group"
Netweaver = "Netweaver"
Network_Interface = "network-interface"
None = "none"
NSG = "network-security-group"
OK = "OK"
Outbound_Only = "outbound-only"
PER = "power-edge-router"
Prefix = "prefix"
Private = "private"
Public = "public"
PubVlan = "pub-vlan"
SAP = "SAP"
Shared = "shared"
Soft = "soft"
SourceQuench = "source-quench"
Suffix = "suffix"
TCP = "tcp"
TimeExceeded = "time-exceeded"
UDP = "udp"
UserTagType = "user"
Vlan = "vlan"
vSCSI = "vSCSI"
Warning = "WARNING"

// Actions
Action_HardReboot = "hard-reboot"
Expand Down
Loading

0 comments on commit f25696d

Please sign in to comment.