Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Distributed Firewall and Network Context Profile lookup #452

Merged
merged 11 commits into from
Apr 7, 2022

Conversation

Didainius
Copy link
Collaborator

@Didainius Didainius commented Mar 29, 2022

This PR adds support for Distributed Firewall Rules and Network Context Profile lookup functions (VCD does not yet support creation of Netwok Context Profiles in UI).

  • Add support for for Network Context Profile lookup using GetAllNetworkContextProfiles and
    GetNetworkContextProfilesByNameScopeAndContext functions
  • Add support for NSX-T Distributed Firewall rule management using type DistributedFirewall and
    VdcGroup.GetDistributedFirewall, VdcGroup.UpdateDistributedFirewall,
    VdcGroup.DeleteAllDistributedFirewallRules, DistributedFirewall.DeleteAllRules

Note. Tests with tags "network nsxt vdcGroup edgegateway" passed on 10.2.0, 10.2.2.2, 10.3.2

Signed-off-by: Dainius Serplis <dserplis@vmware.com>
Signed-off-by: Dainius Serplis <dserplis@vmware.com>
Signed-off-by: Dainius Serplis <dserplis@vmware.com>
Signed-off-by: Dainius Serplis <dserplis@vmware.com>
@Didainius Didainius marked this pull request as ready for review March 30, 2022 07:25
@Didainius Didainius removed the request for review from dataclouder March 30, 2022 07:26
types/v56/nsxt_types.go Outdated Show resolved Hide resolved
Signed-off-by: Dainius Serplis <dserplis@vmware.com>
Copy link
Contributor

@vbauzys vbauzys left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just Small things :)

govcd/nsxt_distributed_firewall.go Outdated Show resolved Hide resolved
govcd/nsxt_distributed_firewall.go Outdated Show resolved Hide resolved
govcd/nsxt_distributed_firewall_test.go Show resolved Hide resolved
govcd/nsxt_network_context_profile.go Show resolved Hide resolved
Copy link
Contributor

@mikeletux mikeletux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great test coverage, approved!

govcd/nsxt_distributed_firewall_test.go Outdated Show resolved Hide resolved
Signed-off-by: Dainius Serplis <dserplis@vmware.com>
Signed-off-by: Dainius Serplis <dserplis@vmware.com>
@Didainius Didainius merged commit eb47cae into vmware:main Apr 7, 2022
@Didainius Didainius deleted the dfw branch April 7, 2022 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants