Skip to content

Commit

Permalink
Add network policy fields to Antrea registry (vmware#23)
Browse files Browse the repository at this point in the history
Add network policy name and namespace fields.
  • Loading branch information
srikartati authored Sep 17, 2020
1 parent 0e06e95 commit 06e4465
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/registry/registry_antrea.csv
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,8 @@ ElementID,Name,Abstract Data Type,Data Type Semantics,Status,Description,Units,R
105,destinationNodeName,string,,current,,,,,,,,55829,
106,destinationClusterIP,ipv4Address,,current,,,,,,,,55829,
107,destinationServicePort,unsigned16,,current,,,,,,,,55829,
108,destinationServicePortName,string,,current,,,,,,,,55829,
108,destinationServicePortName,string,,current,,,,,,,,55829,
109,ingressNetworkPolicyName,string,,current,,,,,,,,55829,
110,ingressNetworkPolicyNamespace,string,,current,,,,,,,,55829,
111,egressNetworkPolicyName,string,,current,,,,,,,,55829,
112,egressNetworkPolicyNamespace,string,,current,,,,,,,,55829,
4 changes: 4 additions & 0 deletions pkg/registry/registry_antrea.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,8 @@ func (registry *antreaRegistry) LoadRegistry() {
registry.registerInfoElement(*entities.NewInfoElement("destinationClusterIP", 106, 18, 55829, 4))
registry.registerInfoElement(*entities.NewInfoElement("destinationServicePort", 107, 2, 55829, 2))
registry.registerInfoElement(*entities.NewInfoElement("destinationServicePortName", 108, 13, 55829, 65535))
registry.registerInfoElement(*entities.NewInfoElement("ingressNetworkPolicyName", 109, 13, 55829, 65535))
registry.registerInfoElement(*entities.NewInfoElement("ingressNetworkPolicyNamespace", 110, 13, 55829, 65535))
registry.registerInfoElement(*entities.NewInfoElement("egressNetworkPolicyName", 111, 13, 55829, 65535))
registry.registerInfoElement(*entities.NewInfoElement("egressNetworkPolicyNamespace", 112, 13, 55829, 65535))
}

0 comments on commit 06e4465

Please sign in to comment.